Improve consistency of naming

This commit is contained in:
Manuel Bleichenbacher
2018-07-19 22:04:32 +02:00
parent 88937fe511
commit fc34fed6de
4 changed files with 55 additions and 39 deletions

View File

@ -37,11 +37,11 @@ void send_messages(void* pvParameter)
{
while (1) {
printf("Sending message...\n");
ttn_response_t res = ttn.sendBytes(msgData, sizeof(msgData) - 1);
if (res == TTN_SUCCESSFUL_TRANSMISSION)
TTNResponseCode res = ttn.transmitBytes(msgData, sizeof(msgData) - 1);
if (res == kTTNSuccessfulTransmission)
printf("Message sent.\n");
else
printf("Message transmission failed.\n");
printf("Transmission failed.\n");
vTaskDelay(TX_INTERVAL * 1000 / portTICK_PERIOD_MS);
}