Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compiling in a fresh install #2

Open
wero1414 opened this issue Mar 11, 2024 · 1 comment
Open

Not compiling in a fresh install #2

wero1414 opened this issue Mar 11, 2024 · 1 comment

Comments

@wero1414
Copy link

Hello @beegee-tokyo since the RUI3 is open source i wanted to test this for a project we have put on halt for a while.

I have installed the 4.1.1 version of the STM32 RUI3 Arduino core, and when i oppened up the first example (low power) it did not compiled out of the box

Here you can see my configuration:

image

And the Arduino output:

/Users/eduardocontreras/Documents/electronicCats/Fw/RUI3-Best-Practice/RUI3-LowPower-Example/custom_at.cpp: In function 'int status_handler(SERIAL_PORT, char*, stParam*)':
custom_at.cpp:205:44: error: 'class RAKLorawan' has no member named 'pfreq'; did you mean 'bfreq'?
  205 |    AT_PRINTF("Frequency = %d", api.lorawan.pfreq.get());
      |                                            ^~~~~
/Users/eduardocontreras/Documents/electronicCats/Fw/RUI3-Best-Practice/RUI3-LowPower-Example/custom_at.cpp:17:17: note: in definition of macro 'AT_PRINTF'
   17 |   Serial.printf(__VA_ARGS__); \
      |                 ^~~~~~~~~~~
custom_at.cpp:206:37: error: 'class RAKLorawan' has no member named 'psf'
  206 |    AT_PRINTF("SF = %d", api.lorawan.psf.get());
      |                                     ^~~
/Users/eduardocontreras/Documents/electronicCats/Fw/RUI3-Best-Practice/RUI3-LowPower-Example/custom_at.cpp:17:17: note: in definition of macro 'AT_PRINTF'
   17 |   Serial.printf(__VA_ARGS__); \
      |                 ^~~~~~~~~~~
custom_at.cpp:207:37: error: 'class RAKLorawan' has no member named 'pbw'
  207 |    AT_PRINTF("BW = %d", api.lorawan.pbw.get());
      |                                     ^~~
/Users/eduardocontreras/Documents/electronicCats/Fw/RUI3-Best-Practice/RUI3-LowPower-Example/custom_at.cpp:17:17: note: in definition of macro 'AT_PRINTF'
   17 |   Serial.printf(__VA_ARGS__); \
      |                 ^~~~~~~~~~~
custom_at.cpp:208:37: error: 'class RAKLorawan' has no member named 'pcr'
  208 |    AT_PRINTF("CR = %d", api.lorawan.pcr.get());
      |                                     ^~~
/Users/eduardocontreras/Documents/electronicCats/Fw/RUI3-Best-Practice/RUI3-LowPower-Example/custom_at.cpp:17:17: note: in definition of macro 'AT_PRINTF'
   17 |   Serial.printf(__VA_ARGS__); \
      |                 ^~~~~~~~~~~
/Users/eduardocontreras/Documents/electronicCats/Fw/RUI3-Best-Practice/RUI3-LowPower-Example/RUI3-LowPower-Example.ino: In function 'void setup()':
RUI3-LowPower-Example:151:7: error: 'class RAKUnifiedApi' has no member named 'lora'; did you mean 'lorawan'?
  151 |   api.lora.registerPRecvCallback(recv_cb);
      |       ^~~~
      |       lorawan
RUI3-LowPower-Example:152:7: error: 'class RAKUnifiedApi' has no member named 'lora'; did you mean 'lorawan'?
  152 |   api.lora.registerPSendCallback(send_cb);
      |       ^~~~
      |       lorawan
custom_at.cpp:209:50: error: 'class RAKLorawan' has no member named 'ppl'
  209 |    AT_PRINTF("Preamble length = %d", api.lorawan.ppl.get());
      |                                                  ^~~
/Users/eduardocontreras/Documents/electronicCats/Fw/RUI3-Best-Practice/RUI3-LowPower-Example/custom_at.cpp:17:17: note: in definition of macro 'AT_PRINTF'
   17 |   Serial.printf(__VA_ARGS__); \
      |                 ^~~~~~~~~~~
RUI3-LowPower-Example:153:7: error: 'class RAKUnifiedApi' has no member named 'lora'; did you mean 'lorawan'?
  153 |   api.lora.registerPSendCADCallback(cad_cb);
      |       ^~~~
      |       lorawan
custom_at.cpp:210:43: error: 'class RAKLorawan' has no member named 'ptp'
  210 |    AT_PRINTF("TX power = %d", api.lorawan.ptp.get());
      |                                           ^~~
/Users/eduardocontreras/Documents/electronicCats/Fw/RUI3-Best-Practice/RUI3-LowPower-Example/custom_at.cpp:17:17: note: in definition of macro 'AT_PRINTF'
   17 |   Serial.printf(__VA_ARGS__); \
      |                 ^~~~~~~~~~~
custom_at.cpp:214:44: error: 'class RAKLorawan' has no member named 'pfreq'; did you mean 'bfreq'?
  214 |    AT_PRINTF("Frequency = %d", api.lorawan.pfreq.get());
      |                                            ^~~~~
/Users/eduardocontreras/Documents/electronicCats/Fw/RUI3-Best-Practice/RUI3-LowPower-Example/custom_at.cpp:17:17: note: in definition of macro 'AT_PRINTF'
   17 |   Serial.printf(__VA_ARGS__); \
      |                 ^~~~~~~~~~~
custom_at.cpp:215:42: error: 'class RAKLorawan' has no member named 'pbr'
  215 |    AT_PRINTF("Bitrate = %d", api.lorawan.pbr.get());
      |                                          ^~~
/Users/eduardocontreras/Documents/electronicCats/Fw/RUI3-Best-Practice/RUI3-LowPower-Example/custom_at.cpp:17:17: note: in definition of macro 'AT_PRINTF'
   17 |   Serial.printf(__VA_ARGS__); \
      |                 ^~~~~~~~~~~
custom_at.cpp:216:43: error: 'class RAKLorawan' has no member named 'pfdev'
  216 |    AT_PRINTF("Deviaton = %d", api.lorawan.pfdev.get());
      |                                           ^~~~~
/Users/eduardocontreras/Documents/electronicCats/Fw/RUI3-Best-Practice/RUI3-LowPower-Example/custom_at.cpp:17:17: note: in definition of macro 'AT_PRINTF'
   17 |   Serial.printf(__VA_ARGS__); \
      |                 ^~~~~~~~~~~
/Users/eduardocontreras/Documents/electronicCats/Fw/RUI3-Best-Practice/RUI3-LowPower-Example/RUI3-LowPower-Example.ino: In function 'void send_packet()':
RUI3-LowPower-Example:305:11: error: 'class RAKUnifiedApi' has no member named 'lora'; did you mean 'lorawan'?
  305 |   if (api.lora.psend(4, g_solution_data, true))
      |           ^~~~
      |           lorawan
exit status 1
'class RAKLorawan' has no member named 'pfreq'; did you mean 'bfreq'?

I also tried to compile the examples included in your core, and they do not compile either, hope we can solve this.

@beegee-tokyo
Copy link
Collaborator

Are you sure you downloaded the latest version of the Github repo?

V4.1.1 breaks unfortunately the LoRa P2P API calls. This repo reflects already these changes.

api.lorawan.p____ calls have changed to api.lora.p____

But the compilation output you copied shows the a mix of old and new API calls. That is weird.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants