Library to interact locally with PH-803W devices
The PH803W device is internally an ESP which uses the GizWits platform. With this the device offers two ways of communication:
- The device connects to the gizwits cloud via MQTT and publishs the device data there, where the Android app gets the data from
- The device also offers local options via UDP for discovery and setup (Onboarding) and also a TCP interface for communication with the device and to request data
This library is focussing on the local LAN interface via UDP and TCP.
Please see Protocol page.
The library is documented in code (Apidoc) and example scripts show the usage
Available examples (see example folder):
- data.js: Skript to connect to a device via IP, authenticate and retrieve data
- discovery.js: Skript to discover devices in the network
- (normanr) Update protocol and internals
- (Apollon77) add isConnected method to device to return the connection status of the device
- (Apollon77) trigger disconnected event also on pingpong related reconnects
- (Apollon77) enhance test server logging
- (Apollon77) enhance test server
- (Apollon77) BREAKING: Rename redoxSwitch/phSwitch to redoxOutlet/phOutlet in data response
- (Apollon77) Optimize handling of parallel received data packages
- (Apollon77) Add handling of parallel received data packages
- (Apollon77) Initial release