This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(void)printf("Sending 1 messages to IoTHub every %d seconds for %d messages (Send any message to stop)\r\n", TIME_BETWEEN_MESSAGES, MESSAGES_TO_SEND); | |
do | |
{ | |
if (iothub_info.connected != 0) | |
{ | |
// Send a message every TIME_BETWEEN_MESSAGES seconds | |
(void)tickcounter_get_current_ms(tick_counter_handle, ¤t_tick); | |
if ((current_tick - last_send_time) / 1000 > TIME_BETWEEN_MESSAGES) | |
{ | |
static char msgText[1024]; |