summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
26 hourstools: websocket: Quote and prettify RX JSONxengineering
This makes the responses from the Shelly device readable.
26 hourstools: websocket: Log pretty-printed TX JSONxengineering
This allows to more easily see what is sent to the Shelly device.
26 hourstools: websocket: Implement Sys.GenConfigxengineering
This is the first working command for the Shelly 2PM Gen3.
26 hourstools: websocket: Remove needless bracesxengineering
Programming in too many languages ... of course not needed in Go.
26 hourstools: websocket: Add wait for CTRL-Cxengineering
Now the connection is immediately established but just closed on SIGTERM and SIGINT. This allows to keep the connection for some time and lets the user decide when to stop.
26 hourstools: websocket: Add connection set up / tear downxengineering
This was validated by sniffing the communication with Wireshark. The following is executed: - TCP initial handshake - GET /rpc from tool - HTTP 101 Switching Protocols (to Websocket) from Shelly - ACK by tool - TCP connection close initiated by tool This shows that the tool is able to make Websocket connections.
26 hourstools: websocket: Add dummy and build integrationxengineering
Adding support for Shelly devices requires usage of the Websocket API. To make development easier a debug tool is created. Since it is not relevant for users it is not an artefact included into the deploy file archive. This also avoids later removing it which is by definition of the public API (see README.md) a breaking change.