diff --git a/Project/applications/smartcities/json.c b/Project/applications/smartcities/json.c index 6c8214e..ab381fe 100644 --- a/Project/applications/smartcities/json.c +++ b/Project/applications/smartcities/json.c @@ -42,8 +42,12 @@ char* prepare_observation(char* observation, uint32_t length) uint8_t send_json(char* statement, uint32_t length) { - //CHECK CONNECTIVITY - //RETURN JSON_COMM_ERROR + int connectivity; + connectivity = libwismart_IsConnected(); + if(connectivity != WISMART_CONNECT) + { + return JSON_COMM_ERROR; + } //PREPARE HTTP POST //SEND POST //RETURN JSON_OTHER_ERROR