Skip to content

Instantly share code, notes, and snippets.

View gist:c84430bf20a8421d9955c3466b207496
connect to : 10.1.1.93:3019
response event: "res"
request event: "req"
sample request:
{
"data":{
"limit":1,
"offset":1
},
"rpc":"sampleapp.getUsers",
View gist:4e75d29ca3b744e782d9bcabb592d9ef
#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;
You can’t perform that action at this time.