- changed status to resolved
netsender: error: vs missing when no vs is expected
Issue #34
resolved
Sometimes requests will return responses with no var sum (vs) eg. the first act request when using actuators. The pi netsender (netsender.go) always expects a vs so it results in an error “vs missing“.
To fix this we need to either:
- Change the request handlers (specifically actHandler) to always respond with a vs, eg. the pollHandler always responds with a vs (it creates on if one doesn’t exist).
- Or change the pi netsender to allow for no vs in a response. This is what happens in the arduino netsender (Netsender.cpp).
It is recommended that the second option is implemented since that is how actuators have been working on the ESP (arduino netsender).
Comments (1)
-
reporter - Log in to comment
Resolved in PR #78