| Age | Commit message (Collapse) | Author |
|
This makes it easier to distinguish the JSON messages visually.
|
|
This makes the responses from the Shelly device readable.
|
|
This allows to more easily see what is sent to the Shelly device.
|
|
This is the first working command for the Shelly 2PM Gen3.
|
|
Programming in too many languages ... of course not needed in Go.
|
|
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.
|
|
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.
|
|
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.
|