The first thing to do when implementing a bowler device in c is to add the BowlerCom library using the Arduino Library Manager in the Arduino IDE.
This will put a copy of c-bowler in your project root. If you are not using Git or are not familiar with git, you can just download it and place it in your project root. Here is a simple C example of setting up and running the bowler server with just the built-in bcs.core and bcs.rpc namespaces. This will respond to pings and a namespace interogation.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ScriptingEngine.gitScriptRun( | |
"https://github.com/CommonWealthRobotics/BowlerCom.git", // git location of the library | |
"examples/BowlerSimple/BowlerSimple.ino" , // Arduino DyIo default firmware | |
null | |
); |