We can see that close is not happening.
My workaround is adding the QICLOSE into the on "close" method works although it hard codes the socket number.
Another anomaly is what seems to be a size limitation on the packet which is less than the MTU (around 512 bytes??). The body is truncated and the truncated length is correct to the send request to the module, however the length in the header is the original length, so the server is waiting for more. You can see I've commented out part of the payload I send. When I un-comment it, the send size is 352 bytes even though the packet is larger.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Gordon,
further to the previous thread regarding the RAK8212/BG96, here's a dump of the sequence-
Note that the ip address and auth have been changed to protect the innocent.
state() and close() and my functions that issue QISTATE and QICLOSE.
The function I used to create this:
We can see that close is not happening.
My workaround is adding the QICLOSE into the on "close" method works although it hard codes the socket number.
Another anomaly is what seems to be a size limitation on the packet which is less than the MTU (around 512 bytes??). The body is truncated and the truncated length is correct to the send request to the module, however the length in the header is the original length, so the server is waiting for more. You can see I've commented out part of the payload I send. When I un-comment it, the send size is 352 bytes even though the packet is larger.