....could anyone please help me on just getting a esp8266-01 working on the standard uart tx and rx..gets pretty technical on hardware and software and terminal specific issues....
thanks
Explore... Chat... Share...
#include <ESP8266WiFi.h>
#include <Ethernet.h>
#include "Gsender.h"
byte mac[] = {0x61, 0x02, 0x93, 0x34, 0x25, 0x86};
IPAddress ip( 192, 168, 0, 33 );
IPAddress gateway( 192, 168, 0, 1 );
IPAddress subnet( 255, 255, 255, 0 );
const char* ssid = "MyCaseSensSSID";
const char* password = "mysecret";
void setup ()
{
delay (1000);
pinMode(2, OUTPUT);
blink (2);
Ethernet.begin(mac, ip, gateway, gateway, subnet);
delay(1000);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
}
blink (4);
String mytxt = "The Postman Always Rings Twice, a\n";
Gsender *gsender = Gsender::Instance();
gsender->Send("7191234567@vtext.com", mytxt);
blink (1); delay (1000);
blink (1); delay (1000);
blink (1); delay (1000);
ESP.deepSleep(-1);
}
void loop ()
{ // should never get here
blink (1); delay (1000);
ESP.deepSleep(-1);
delay (1000);
}
void blink (int cnt)
{
for (int n=0; n<cnt; n++)
{
digitalWrite(2, LOW);
delay (200);
digitalWrite(2, HIGH);
delay (200);
}
}
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]