View MQTT_Publish_Test_00.py
#!/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)
'''
View MQTT_test.ino
#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";
View SW_Serial_Echo_00.ino
#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");
View Led_13_Serial_Test.ino
/*
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;
View ESP_Echo.ino
#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);
}
View ESP8266_Arduino_Uno_Hello_00.ino
/*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