Esp8266 Connect Onenet via mqtt, subscribe & publish
product_id = 'YourProductID' #Change to your product id number as a string regKey = 'YourEvnRegistKey' #Change to your environment key
sta_if.connect('SSID', 'PASSOWRD') #Change to your wifi SSID and PASSWORD
Command format by 'pin n state'.
- pin as string 'pin'
- n is pin number, enum by 0,1,2,3,4,5,12,13,14,15,16
- state is 'on','off' or 'toggle'
- auto reconnect
- web config or smartlink