beegee-tokyo / RUI3-LowPower-Example

Example how to achieve lowest power consumption with a custom firmware created with RUI3
MIT License
6 stars 3 forks source link

MYLOG was not found #2

Closed CharlesMod closed 6 months ago

CharlesMod commented 12 months ago

attempting to compile and flash this sketch with Arduino on Windows 11 results in the following error:

C:\Users\Deanm\Downloads\RUI3-LowPower-Example-main\RUI3-LowPower-Example-main\RUI3-LowPower-Example\RUI3-LowPower-Example.ino: In function 'void joinCallback(int32_t)':
C:\Users\Deanm\Downloads\RUI3-LowPower-Example-main\RUI3-LowPower-Example-main\RUI3-LowPower-Example\RUI3-LowPower-Example.ino:44:3: error: 'MYLOG' was not declared in this scope
   44 |   MYLOG("JOIN-CB", "LoRaWan OTAA - join fail! \r\n");
      |   ^~~~~
C:\Users\Deanm\Downloads\RUI3-LowPower-Example-main\RUI3-LowPower-Example-main\RUI3-LowPower-Example\RUI3-LowPower-Example.ino:50:3: error: 'MYLOG' was not declared in this scope
   50 |   MYLOG("JOIN-CB", "LoRaWan OTAA - joined! \r\n");
      |   ^~~~~
C:\Users\Deanm\Downloads\RUI3-LowPower-Example-main\RUI3-LowPower-Example-main\RUI3-LowPower-Example\RUI3-LowPower-Example.ino: In function 'void receiveCallback(SERVICE_LORA_RECEIVE_T*)':
C:\Users\Deanm\Downloads\RUI3-LowPower-Example-main\RUI3-LowPower-Example-main\RUI3-LowPower-Example\RUI3-LowPower-Example.ino:62:2: error: 'MYLOG' was not declared in this scope
   62 |  MYLOG("RX-CB", "RX, port %d, DR %d, RSSI %d, SNR %d", data->Port, data->RxDatarate, data->Rssi, data->Snr);
      |  ^~~~~
C:\Users\Deanm\Downloads\RUI3-LowPower-Example-main\RUI3-LowPower-Example-main\RUI3-LowPower-Example\RUI3-LowPower-Example.ino: In function 'void sendCallback(int32_t)':
C:\Users\Deanm\Downloads\RUI3-LowPower-Example-main\RUI3-LowPower-Example-main\RUI3-LowPower-Example\RUI3-LowPower-Example.ino:78:2: error: 'MYLOG' was not declared in this scope
   78 |  MYLOG("TX-CB", "TX status %d", status);
      |  ^~~~~
C:\Users\Deanm\Downloads\RUI3-LowPower-Example-main\RUI3-LowPower-Example-main\RUI3-LowPower-Example\RUI3-LowPower-Example.ino: In function 'void recv_cb(rui_lora_p2p_recv_t)':
C:\Users\Deanm\Downloads\RUI3-LowPower-Example-main\RUI3-LowPower-Example-main\RUI3-LowPower-Example\RUI3-LowPower-Example.ino:90:2: error: 'MYLOG' was not declared in this scope
   90 |  MYLOG("RX-P2P-CB", "P2P RX, RSSI %d, SNR %d", data.Rssi, data.Snr);
      |  ^~~~~
C:\Users\Deanm\Downloads\RUI3-LowPower-Example-main\RUI3-LowPower-Example-main\RUI3-LowPower-Example\RUI3-LowPower-Example.ino: In function 'void send_cb()':
C:\Users\Deanm\Downloads\RUI3-LowPower-Example-main\RUI3-LowPower-Example-main\RUI3-LowPower-Example\RUI3-LowPower-Example.ino:105:2: error: 'MYLOG' was not declared in this scope
  105 |  MYLOG("TX-P2P-CB", "P2P TX finished");
      |  ^~~~~
C:\Users\Deanm\Downloads\RUI3-LowPower-Example-main\RUI3-LowPower-Example-main\RUI3-LowPower-Example\RUI3-LowPower-Example.ino: In function 'void setup()':
C:\Users\Deanm\Downloads\RUI3-LowPower-Example-main\RUI3-LowPower-Example-main\RUI3-LowPower-Example\RUI3-LowPower-Example.ino:164:7: error: 'init_status_at' was not declared in this scope
  164 |  if (!init_status_at())
      |       ^~~~~~~~~~~~~~
C:\Users\Deanm\Downloads\RUI3-LowPower-Example-main\RUI3-LowPower-Example-main\RUI3-LowPower-Example\RUI3-LowPower-Example.ino:166:3: error: 'MYLOG' was not declared in this scope
  166 |   MYLOG("SETUP", "Add custom AT command STATUS fail");
      |   ^~~~~
C:\Users\Deanm\Downloads\RUI3-LowPower-Example-main\RUI3-LowPower-Example-main\RUI3-LowPower-Example\RUI3-LowPower-Example.ino:170:7: error: 'init_interval_at' was not declared in this scope
  170 |  if (!init_interval_at())
      |       ^~~~~~~~~~~~~~~~
C:\Users\Deanm\Downloads\RUI3-LowPower-Example-main\RUI3-LowPower-Example-main\RUI3-LowPower-Example\RUI3-LowPower-Example.ino:172:3: error: 'MYLOG' was not declared in this scope
  172 |   MYLOG("SETUP", "Add custom AT command Send Interval fail");
      |   ^~~~~
C:\Users\Deanm\Downloads\RUI3-LowPower-Example-main\RUI3-LowPower-Example-main\RUI3-LowPower-Example\RUI3-LowPower-Example.ino:176:2: error: 'get_at_setting' was not declared in this scope
  176 |  get_at_setting();
      |  ^~~~~~~~~~~~~~
C:\Users\Deanm\Downloads\RUI3-LowPower-Example-main\RUI3-LowPower-Example-main\RUI3-LowPower-Example\RUI3-LowPower-Example.ino:200:4: error: 'MYLOG' was not declared in this scope
  200 |    MYLOG("SETUP", "Confirmed enabled");
      |    ^~~~~
C:\Users\Deanm\Downloads\RUI3-LowPower-Example-main\RUI3-LowPower-Example-main\RUI3-LowPower-Example\RUI3-LowPower-Example.ino:204:4: error: 'MYLOG' was not declared in this scope
  204 |    MYLOG("SETUP", "Confirmed disabled");
      |    ^~~~~
C:\Users\Deanm\Downloads\RUI3-LowPower-Example-main\RUI3-LowPower-Example-main\RUI3-LowPower-Example\RUI3-LowPower-Example.ino:207:3: error: 'MYLOG' was not declared in this scope
  207 |   MYLOG("SETUP", "Retry = %d", g_confirmed_retry);
      |   ^~~~~
C:\Users\Deanm\Downloads\RUI3-LowPower-Example-main\RUI3-LowPower-Example-main\RUI3-LowPower-Example\RUI3-LowPower-Example.ino: In function 'void sensor_handler(void*)':
C:\Users\Deanm\Downloads\RUI3-LowPower-Example-main\RUI3-LowPower-Example-main\RUI3-LowPower-Example\RUI3-LowPower-Example.ino:230:2: error: 'MYLOG' was not declared in this scope
  230 |  MYLOG("UPLINK", "Start");
      |  ^~~~~
C:\Users\Deanm\Downloads\RUI3-LowPower-Example-main\RUI3-LowPower-Example-main\RUI3-LowPower-Example\RUI3-LowPower-Example.ino: In function 'void send_packet()':
C:\Users\Deanm\Downloads\RUI3-LowPower-Example-main\RUI3-LowPower-Example-main\RUI3-LowPower-Example\RUI3-LowPower-Example.ino:293:3: error: 'MYLOG' was not declared in this scope
  293 |   MYLOG("UPLINK", "Sending packet # %d", my_fcount);
      |   ^~~~~
C:\Users\Deanm\Downloads\RUI3-LowPower-Example-main\RUI3-LowPower-Example-main\RUI3-LowPower-Example\RUI3-LowPower-Example.ino:310:3: error: 'MYLOG' was not declared in this scope
  310 |   MYLOG("UPLINK", "Send packet with size 4 over P2P");
      |   ^~~~~

exit status 1

Compilation error: 'MYLOG' was not declared in this scope
CharlesMod commented 12 months ago

furthermore, errors are also encountered for init_status_at(), init_interval_at() and get_at_setting()

beegee-tokyo commented 12 months ago

Do you have copied all files? You need all three files: