Skip to content

Instantly share code, notes, and snippets.

View roboticboyer's full-sized avatar
🏠
Working from home

Giorgio Boiero roboticboyer

🏠
Working from home
  • Robotic Boyer
  • Piossasco Italy
View GitHub Profile
#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);
}
@roboticboyer
roboticboyer / Led_13_Serial_Test.ino
Created January 3, 2015 07:29
Led_13_Serial_Test
/*
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;
#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");
#!/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)
'''
/*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
@roboticboyer
roboticboyer / MQTT_test.ino
Last active November 5, 2017 17:23
MQTT_test
#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";