Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
Releases v1.1.0 to add support to ESP32/ESP8266
Browse files Browse the repository at this point in the history
### Releases v1.1.0

1. Add support to ESP32 and ESP8266 using EEPROM, SPIFFS or LittleFS
2. Add many complex MQTT Examples to demonstrate how to use the dynamic parameters, entered via Config Portal, to connect to **ThingStream MQTT Server** at `mqtt.thingstream.io`.
  • Loading branch information
khoih-prog committed Dec 18, 2020
1 parent fa320c7 commit 8828230
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 33 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -714,13 +714,13 @@ If no valid config data are stored in EEPROM, it will switch to `Configuration M
After you connected to, for example, `192.168.2.86`, the Browser will display the following picture:

<p align="center">
<img src="https://github.com/khoih-prog/Ethernet_Manager/blob/main/pics/ConfigPortal_DUE.png">
<img src="https://github.com/khoih-prog/Ethernet_Manager/blob/main/pics/ConfigPortal.png">
</p>

Enter your credentials (Blynk Servers/Tokens and Port). If you prefer static IP, input it (for example `192.168.2.220`) in the corresponding field. Otherwise, just leave it `blank` or `nothing` to use auto IP assigned by DHCP server.

<p align="center">
<img src="https://github.com/khoih-prog/Ethernet_Manager/blob/main/pics/ConfigPortal_DUE.png">
<img src="https://github.com/khoih-prog/Ethernet_Manager/blob/main/pics/ConfigPortal_Data.png">
</p>

Then click `Save`. After the board auto-restarted, you will see if it's connected to your Blynk server successfully as in the following picture:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@

// GOT FROM ThingsStream!

#if 0
const char *MQTT_SERVER = "mqtt.thingstream.io";
const char *MQTT_USER = "MQTT_USER";
const char *MQTT_PASS = "MQTT_PASS";
const char *MQTT_CLIENT_ID = "MQTT_CLIENT_ID";

const int MQTT_PORT = 1883; //if you use SSL //1883 no SSL
#endif

const char *MQTT_PREFIX_TOPIC = "esp32-sniffer/";
const char *MQTT_ANNOUNCE_TOPIC = "/status";
const char *MQTT_CONTROL_TOPIC = "/control";
Expand Down Expand Up @@ -55,7 +46,6 @@ unsigned long lastMsg = 0;

EthernetClient ethClient;

//PubSubClient client(MQTT_SERVER, atoi(MQTT_PORT), mqtt_receive_callback, ethClient);
PubSubClient* client = NULL;

/*
Expand Down
2 changes: 1 addition & 1 deletion examples/MQTT_ThingStream_Ethernet_Generic/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@
// From ESP8266 core 2.7.1, SPIFFS will be deprecated and to be replaced by LittleFS
// Select USE_LITTLEFS (higher priority) or USE_SPIFFS

#define USE_LITTLEFS false
#define USE_LITTLEFS true
#define USE_SPIFFS false

#if USE_LITTLEFS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@

// GOT FROM ThingsStream!

#if 0
const char *MQTT_SERVER = "mqtt.thingstream.io";
const char *MQTT_USER = "MQTT_USER";
const char *MQTT_PASS = "MQTT_PASS";
const char *MQTT_CLIENT_ID = "MQTT_CLIENT_ID";

const int MQTT_PORT = 1883; //if you use SSL //1883 no SSL
#endif

const char *MQTT_PREFIX_TOPIC = "esp32-sniffer/";
const char *MQTT_ANNOUNCE_TOPIC = "/status";
const char *MQTT_CONTROL_TOPIC = "/control";
Expand Down Expand Up @@ -55,7 +46,6 @@ unsigned long lastMsg = 0;

EthernetClient ethClient;

//PubSubClient client(MQTT_SERVER, atoi(MQTT_PORT), mqtt_receive_callback, ethClient);
PubSubClient* client = NULL;

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@

// GOT FROM ThingsStream!

#if 0
const char *MQTT_SERVER = "mqtt.thingstream.io";
const char *MQTT_USER = "MQTT_USER";
const char *MQTT_PASS = "MQTT_PASS";
const char *MQTT_CLIENT_ID = "MQTT_CLIENT_ID";

const int MQTT_PORT = 1883; //if you use SSL //1883 no SSL
#endif

const char *MQTT_PREFIX_TOPIC = "esp32-sniffer/";
const char *MQTT_ANNOUNCE_TOPIC = "/status";
const char *MQTT_CONTROL_TOPIC = "/control";
Expand Down Expand Up @@ -55,7 +46,6 @@ unsigned long lastMsg = 0;

EthernetClient ethClient;

//PubSubClient client(MQTT_SERVER, atoi(MQTT_PORT), mqtt_receive_callback, ethClient);
PubSubClient* client = NULL;

/*
Expand Down
Binary file modified pics/ConfigPortal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pics/ConfigPortal_Data.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pics/Saved.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8828230

Please sign in to comment.