diff --git a/examples/MQTT/MQTT_Publish/MQTT_Publish.ino b/examples/MQTT/MQTT_Publish/MQTT_Publish.ino index e5e85051..1dc25099 100644 --- a/examples/MQTT/MQTT_Publish/MQTT_Publish.ino +++ b/examples/MQTT/MQTT_Publish/MQTT_Publish.ino @@ -8,13 +8,22 @@ IMPORTANT: Before uploading this example, make sure that the ESP8266 module is running AT firmware (can be found in the /extras folder of the library)! + + For full API reference, see the GitHub Pages + https://jgromes.github.io/RadioLib/ */ // include the library #include -// ESP8266 module is in slot A on the shield -ESP8266 wifi = RadioShield.ModuleA; +// ESP8266 has the following connections: +// TX pin: 9 +// RX pin: 8 +ESP8266 wifi = new Module(9, 8); + +// or using RadioShield +// https://github.com/jgromes/RadioShield +//ESP8266 wifi = RadioShield.ModuleA; // create MQTT client instance using the wifi module // the default port used for MQTT is 1883 @@ -80,4 +89,3 @@ void loop() { // wait for a second before publishing again delay(1000); } - diff --git a/examples/MQTT/MQTT_Subscribe/MQTT_Subscribe.ino b/examples/MQTT/MQTT_Subscribe/MQTT_Subscribe.ino index 85ae9861..c06bc758 100644 --- a/examples/MQTT/MQTT_Subscribe/MQTT_Subscribe.ino +++ b/examples/MQTT/MQTT_Subscribe/MQTT_Subscribe.ino @@ -8,13 +8,22 @@ IMPORTANT: Before uploading this example, make sure that the ESP8266 module is running AT firmware (can be found in the /extras folder of the library)! + + For full API reference, see the GitHub Pages + https://jgromes.github.io/RadioLib/ */ // include the library #include -// ESP8266 module is in slot A on the shield -ESP8266 wifi = RadioShield.ModuleA; +// ESP8266 has the following connections: +// TX pin: 9 +// RX pin: 8 +ESP8266 wifi = new Module(9, 8); + +// or using RadioShield +// https://github.com/jgromes/RadioShield +//ESP8266 wifi = RadioShield.ModuleA; // create MQTT client instance using the wifi module // the default port used for MQTT is 1883