This file contains hidden or 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
connect to : 10.1.1.93:3019 | |
response event: "res" | |
request event: "req" | |
sample request: | |
{ | |
"data":{ | |
"limit":1, | |
"offset":1 | |
}, | |
"rpc":"sampleapp.getUsers", |
This file contains hidden or 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 <WiFiClient.h> | |
#include <ESP8266WebServer.h> | |
#include <ESP8266mDNS.h> | |
const char* ssid = "SSID"; | |
const char* password = "PWD"; | |
const short MOISTURE_THRESHOLD = 10; | |
const short DRY_SOIL = 300 + MOISTURE_THRESHOLD; | |
const short HUMID_SOIL = 700 + MOISTURE_THRESHOLD; |