-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
version 1.0.1 enhance OTA feature and fix issue
update library properties
- Loading branch information
1 parent
aec1df8
commit 5f76330
Showing
8 changed files
with
92 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
# Magellan | ||
Magellan IoT Platform Library/SDK for ESP32 and ESP82666 | ||
# MAGELLAN_SIM7600E |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#include <Arduino.h> | ||
#include <MAGELLAN_MQTT.h> | ||
#include <MAGELLAN_WiFi_SETTING.h> //optional you can using wifi connect with your own functionn | ||
#define REGEN_BY_CONDITION false | ||
WiFiClient WiFi_client; | ||
MAGELLAN_MQTT magel(WiFi_client); | ||
|
||
String SSID = "set_your_ssid"; | ||
String PASS = "set_your_password"; | ||
|
||
int checkStatusUpdate = UNKNOWN; | ||
void setup() | ||
{ | ||
Serial.begin(115200); | ||
WiFiSetting.SSID = SSID; //optional wifi connection | ||
WiFiSetting.PASS = PASS; //optional wifi connection | ||
connectWiFi(WiFiSetting); //optional wifi connection | ||
magel.begin(setting); | ||
|
||
Serial.println("# Read Credential 1st time"); | ||
Serial.println("ThingIdentifier: "+ magel.credential.getThingIdentifier()); | ||
Serial.println("ThingSecret: "+ magel.credential.getThingSecret()); | ||
Serial.println("# Regenerate Credential"); | ||
magel.credential.regenerate(REGEN_BY_CONDITION); // if set true == will regenerate only credential activated, false regenerate without condition | ||
Serial.println("# Read Credential 2nd time (After Regenerate)"); | ||
Serial.println("ThingIdentifier: "+ magel.credential.getThingIdentifier()); | ||
Serial.println("ThingSecret: "+ magel.credential.getThingSecret()); | ||
Serial.println("PreviousThingIdentifier: "+ magel.credential.getPreviousThingIdentifier()); | ||
Serial.println("PreviousThingSecret: "+ magel.credential.getPreviousThingSecret()); | ||
Serial.println("# Recovery Credential(swarp credential old to current)"); | ||
magel.credential.recovery(); | ||
Serial.println("ThingIdentifier: "+ magel.credential.getThingIdentifier()); | ||
Serial.println("ThingSecret: "+ magel.credential.getThingSecret()); | ||
Serial.println("PreviousThingIdentifier: "+ magel.credential.getPreviousThingIdentifier()); | ||
Serial.println("PreviousThingSecret: "+ magel.credential.getPreviousThingSecret()); | ||
} | ||
|
||
void loop() | ||
{ | ||
magel.loop(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters