I'm new to a little new to programming, how do I store a variable in message
? I'm trying to make a wireless temperature sensor using LoRa, with an Arduino Uno + Dragino shield. The results to be displayed on the things network. Everything else is working fine. Why do I get the error written below? {temp}
does not work either.
CODE:
int temp = 25;
// Payload to send (uplink)
static uint8_t message[] = temp;
Error:
HelloWorld1:77: error: initializer fails to determine size of 'message'
static uint8_t message[] = temp;
^
HelloWorld1:77: error: array must be initialized with a brace-enclosed initializer
Multiple libraries were found for "lmic.h"
Used: C:\Users\\Documents\Arduino\libraries\arduino-lmic-master
Not used: C:\Program Files (x86)\Arduino\libraries\arduino-lmic-master
exit status 1
initializer fails to determine size of 'message'