In part 3 of the “Bluetooth in Action” mini-series, James Langbridge introduced BGScript: an exclusive scripting language built by Silicon Labs. The strength of this coding language is its ability to communicate protocols to BLE modules without the need for an IAR compiler license or custom C programming.
Part 4 inspects the event-driven BGScript code, its governing “If this, then that” language type, and the corresponding directives, procedures, and parameters set up within. Part 4 also covers additional features, such as how to add comments to relate information to readers about what each part of the code does or is supposed to be doing.
We’ll be using what we learn here to eventually write a real application, so pay extra close attention to these steps.
Special thanks to blog contributor @NicholasSirris