NanoService Example for u-blox Cellular modems
Dependencies: Beep LM75B MMA7660 mbed nsdl_lib
Fork of NSDL_HelloWorld by
Diff: resources/temperature.cpp
- Revision:
- 9:ccb9e53d5471
- Parent:
- 3:52c1b649eb04
- Child:
- 10:4cb556c7845e
--- a/resources/temperature.cpp Mon Oct 28 19:38:15 2013 +0000 +++ b/resources/temperature.cpp Wed Oct 30 00:32:48 2013 +0000 @@ -31,9 +31,9 @@ obs_number++; sprintf(temp_val,"%2.2f" ,tmp.read()); if(sn_nsdl_send_observation_notification(obs_token_ptr, obs_token_len, (uint8_t*)temp_val, 5, &obs_number, 1, COAP_MSG_TYPE_NON_CONFIRMABLE, 0) == 0) - pc.printf("Observation sending failed\r\n"); + printf("Observation sending failed\r\n"); else - pc.printf("Observation\r\n"); + printf("Observation\r\n"); } } } @@ -45,7 +45,7 @@ sprintf(temp_val,"%2.2f" ,tmp.read()); sn_coap_hdr_s *coap_res_ptr = 0; - pc.printf("temp callback\r\n"); + printf("temp callback\r\n"); coap_res_ptr = sn_coap_build_response(received_coap_ptr, COAP_MSG_CODE_RESPONSE_CONTENT); coap_res_ptr->payload_len = 5; @@ -53,7 +53,7 @@ if(received_coap_ptr->token_ptr) { - pc.printf("Token included\r\n"); + printf("Token included\r\n"); if(obs_token_ptr) { free(obs_token_ptr);