[HTTP] Updated examples
This commit is contained in:
parent
0adf34fea2
commit
66cd4e45ec
2 changed files with 26 additions and 9 deletions
|
@ -8,13 +8,22 @@
|
||||||
|
|
||||||
IMPORTANT: Before uploading this example, make sure that the ESP8266 module is running
|
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)!
|
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 the library
|
||||||
#include <RadioLib.h>
|
#include <RadioLib.h>
|
||||||
|
|
||||||
// ESP8266 module is in slot A on the shield
|
// ESP8266 has the following connections:
|
||||||
ESP8266 wifi = RadioShield.ModuleA;
|
// 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 HTTP client instance using the wifi module
|
// create HTTP client instance using the wifi module
|
||||||
// the default port used for HTTP is 80
|
// the default port used for HTTP is 80
|
||||||
|
|
|
@ -8,13 +8,22 @@
|
||||||
|
|
||||||
IMPORTANT: Before uploading this example, make sure that the ESP8266 module is running
|
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)!
|
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 the library
|
||||||
#include <RadioLib.h>
|
#include <RadioLib.h>
|
||||||
|
|
||||||
// ESP8266 module is in slot A on the shield
|
// ESP8266 has the following connections:
|
||||||
ESP8266 wifi = RadioShield.ModuleA;
|
// 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 HTTP client instance using the wifi module
|
// create HTTP client instance using the wifi module
|
||||||
// the default port used for HTTP is 80
|
// the default port used for HTTP is 80
|
||||||
|
@ -75,4 +84,3 @@ void loop() {
|
||||||
// wait for a second before sending new request
|
// wait for a second before sending new request
|
||||||
delay(1000);
|
delay(1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue