r-map / rmap

rete monitoraggio ambientale partecipativo documentation at https://doc.rmap.cc
https://rmap.cc
52 stars 43 forks source link

AT+CIPSTART to should handle case for ALREADY CONNECTED #158

Closed dmsherazi closed 7 years ago

dmsherazi commented 8 years ago

If we have an existing connection and try AT+CIPSTART the reply would be

ERROR
ALREADY CONNECTED

This case is currently not handled

pat1 commented 8 years ago

Can you show an example with call to library? AT+CIPSTART is inside bool SIM800::TCPconnect(const char* server, int port) that set STATE_HTTPINITIALIZED in state and this state is checked by SIM800::isHttpInitialized() and returned by sim800Client::connected()

OK, no comment on variable names derived by patch applied in time ... but you can call connected() before a new connect.

pat1 commented 8 years ago

without other information I will close this ...

pat1 commented 7 years ago

no information on this bug