yaqoob Active Member Licensed User Longtime User Nov 15, 2021 #1 Hello Everyone, I am trying to convert the Arduino application ATOM_Socket.ino (https://github.com/m5stack/M5Atom/tree/master/examples/ATOM_BASE/ATOM_Socket) to B4R application. The Arduin application includes two files the header AtomSocket.h and the source AtomSocket.cpp. In the B4R application, I copied the requred parts of the Arduino code and put them under the #if c and copied the AtomSocket.h and AtomSocket.cpp to the Objects directory but the B4R application did not compile and gave error it can not find AtomSocket.h. I copied the files under the src and it did not work. Copied them in additional libraries and it gave the same error. My question in the B4R is how to include the .h file and .ccp files so that the application can comply Thank you.
Hello Everyone, I am trying to convert the Arduino application ATOM_Socket.ino (https://github.com/m5stack/M5Atom/tree/master/examples/ATOM_BASE/ATOM_Socket) to B4R application. The Arduin application includes two files the header AtomSocket.h and the source AtomSocket.cpp. In the B4R application, I copied the requred parts of the Arduino code and put them under the #if c and copied the AtomSocket.h and AtomSocket.cpp to the Objects directory but the B4R application did not compile and gave error it can not find AtomSocket.h. I copied the files under the src and it did not work. Copied them in additional libraries and it gave the same error. My question in the B4R is how to include the .h file and .ccp files so that the application can comply Thank you.
Erel B4X founder Staff member Licensed User Longtime User Nov 16, 2021 #2 The B4R compiler will copy all files from the referenced libraries folders. You can put those files in one of the folders and they will be copied. Upvote 0
The B4R compiler will copy all files from the referenced libraries folders. You can put those files in one of the folders and they will be copied.
yaqoob Active Member Licensed User Longtime User Nov 16, 2021 #3 Thank Erel for your reply. The files are copied to the library folder (screenshot socket lib files.png), but still, give the same error (screenshot socket error.png) Attachments socket error.png 132.2 KB · Views: 618 socket lib files.png 236.5 KB · Views: 649 Upvote 0
Thank Erel for your reply. The files are copied to the library folder (screenshot socket lib files.png), but still, give the same error (screenshot socket error.png)
yaqoob Active Member Licensed User Longtime User Nov 16, 2021 #4 Hi, I have solved the problem. I copied the files AtomSocket.h and AtomSocket.ccp to the Arduino ...\Documents\Arduino\libraries\M5Atom directory Upvote 0
Hi, I have solved the problem. I copied the files AtomSocket.h and AtomSocket.ccp to the Arduino ...\Documents\Arduino\libraries\M5Atom directory