char
cmd[
128
];
sprintf
(cmd,
"AT+CMSGHEX=\"%04X%04X\"\r\n"
, (
int
)temp, (
int
)humi);
ret = at_send_check_response(
"Done"
,
5000
, cmd);
if
(ret)
{
recv_prase(recv_buf);
}
else
{
Serial.print(
"Send failed!\r\n\r\n"
);
}
delay(
5000
);
}
}
else
{
delay(
1000
);
}
}
TTN Console Configuration Setup
•
Step 1
: Load into TTN
https://www.thethingsnetwork.org
then access “Console” and first click on "APPLICATIONS".
•
Step 2
: Add an Application:
•
Application ID: Enter a unique name.