How is the RAKUnifiedApi instance included in the main (.ino) file?

Hello

Was going through RUI3 LoRaWAN OTAA sample and I noticed that an instance of RAKUnifiedApi is being used in the .ino file.

I found where it is declared, in the RAKUnifiedAPI.cpp file which is inturn included in the ruiTop.h file, and that is included in the WProgram.h file:

RAKUnifiedAPI api > RAKUnifiedAPI.h > ruiTop.h > WProgram.h

But I dont see the link between the RAKUnifiedAPI instance or WProgram.h and the main.ino file. Anyone have some insight on this?

Thanks
Sabith

If you mean the api.xxxxxxx calls, they are part of RUI3 API and are automatically included when creating an application with the RUI3 BSP.

yeah, that’s what i mean, any idea how that include process works?

Its automatic.
Same as you do not explicit have to include Arduino.h

Alright, thanks for your time. Guess I just needed to lookup how arduino handles that.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.