This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SoftwareSerial.h> | |
SoftwareSerial esp8266(9, 10); // RX, TX | |
void setup() | |
{ | |
// Open serial communications and wait for port to open: | |
Serial.begin(9600); | |
esp8266.begin(9600); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Blink | |
Turns on an LED on for one second, then off for one second, repeatedly. | |
This example code is in the public domain. | |
*/ | |
// Pin 13 has an LED connected on most Arduino boards. | |
// give it a name: | |
int led = 13; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SoftwareSerial.h> | |
SoftwareSerial esp8266(9, 10); // RX, TX | |
void setup() | |
{ | |
// Open serial communications and wait for port to open: | |
//Serial.begin(9600); | |
Serial.begin(57600); | |
esp8266.begin(9600); | |
Serial.println("Echo da Seriale 00"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import paho.mqtt.client as mqtt | |
import time | |
mqttc = mqtt.Client("python_pub") | |
#mqttc.connect("192.168.1.103", 1883) | |
mqttc.connect("192.168.4.1", 1883) | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*ESP8266_arduino_Gio_08.ino | |
* | |
* ====== ESP8266 Demo ====== | |
* Print out analog values | |
* ========================== | |
* | |
* Change SSID and PASS to match your WiFi settings. | |
* The IP address is displayed to soft serial upon successful connection. | |
* | |
/*ESP8266_arduino_Gio_02.ino |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> | |
#include <PubSubClient.h> | |
// Update these with values suitable for your network. | |
//const char *ssid = "localwifi"; | |
//const char *password = "localpassword"; | |
const char *ssid = "MyAP"; |