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> | |
const char* ssid = "your-ssid"; | |
const char* password = "your-pass"; | |
const char* host = "your-dns"; | |
int mNextTime =30000; | |
const byte mLED_pin =16; |
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
<?php | |
//------------------------------------ | |
// @calling | |
// @purpose : Zero Str, max=10 char | |
// @date | |
// @argment | |
// @return | |
//------------------------------------ | |
function getZeroStr( $src, $num ){ | |
if($num > 10){ |
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> | |
extern "C" { | |
#include "user_interface.h" | |
} | |
const char* ssid = ""; | |
const char* password = ""; | |
const char* host = "aaa1234.com"; |
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 "mbed.h" | |
#include <stdio.h> | |
#include <string> | |
#include <SerialBase.h> | |
string MC_ID="4"; | |
string mRestKey=""; | |
Serial mPc(USBTX, USBRX); |
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> | |
extern "C" { | |
#include "user_interface.h" | |
} | |
const char* ssid = ""; | |
const char* password = ""; | |
const char* host = "ans1234.com"; |
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> | |
extern "C" { | |
#include "user_interface.h" | |
} | |
const char* ssid = "your-ssid"; | |
const char* password = "your-pass"; | |
const char* host = "your-dns"; |
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 <EtherCard.h> | |
// ethernet interface mac address, must be unique on the LAN | |
static byte mymac[] = { 0x74,0x69,0x69,0x2D,0x30,0x32 }; | |
byte Ethernet::buffer[700]; | |
static uint32_t timer; | |
const char website[] PROGMEM = "dns1234.com"; |
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> | |
int SENSOR_1= 1; | |
SoftwareSerial mySerial(3, 4); // RX, TX | |
void setup() { | |
mySerial.begin(9600); | |
pinMode(SENSOR_1 ,INPUT); | |
} |
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
/* | |
attiny85_to_esp8266_at.ino | |
ATtiny85 send to esp8266(AT), SoftwareSerial data | |
[ Arduino SDK 1.0.5 ] | |
PIN : D3=RX, D4=TX, A1=Analog Input | |
AT+CIPSEND : Input required, HTTP data Length (manual count) | |
*/ | |
#include <SoftwareSerial.h> | |
int mNextTime=30; |
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 <SPI.h> | |
#include <Ethernet.h> | |
#include <PubSubClient.h> | |
// Update these with values suitable for your network. | |
byte mac[] = { 0xDE, 0xED, 0xBA, 0xFE, 0xFE, 0xE1 }; | |
IPAddress ip(172, 168, 1, 41 ); | |
const char* mqtt_server = "test.mosquitto.org"; |