Hello everybody. I’m trying to learn Arduino environment and I started it with a Cactus Micro Rev2. Cutting parts from codes found on internet, I have this code:
#include < espduino.h >
#define PIN_ENABLE_ESP 13
#define SSID “"
#define PASS "”
ESP esp(&Serial1, PIN_ENABLE_ESP);
void setup() {
Serial1.begin(19200);
esp.enable();
delay(500);
esp.reset();
delay(500);
while(!esp.ready());
esp.wifiConnect(SSID, PASS);
}
void loop() {
}
I have now some question I can’t answer:
- Is it the shortest code possible to get a wifi connection?
- How can I set a static IP?
- Which are the esp. commands available?
- Can anybody give me the right code to send an email (probably with ifttt), please?