Bluenet is the in-house firmware on Crownstone hardware. Functions: switching, dimming, energy monitoring, presence detection, indoor localization, switchcraft.
Before handling request, first handle ack from bluenet. If finishing an interrupt, do not handle request. This was previously a bug.
Redefine shared enums, structs
Add a new return type microapp_result_t
Renaming
command to request
softInterrupt to interrupt
some functions
Code style
More comments
Adhere to clang-format-14
Rename variables to adhere to code style standards
To do
TESTING. All examples need to be extensively tested. Preferably on multiple types of hardware.
Documentation in docs/MICROAPP
Remove/update outdated docs/README sequence diagrams (now covered by docs/CONTROL_FLOW)
Check to see if the changes have significant effect for eventual running of multiple microapps in parallel
Some open TODOs in comments that I don't have a clear answer for yet
Extra feature: When scanning for BLE advertisements, the minimum RSSI of scans to be passed to the microapp could be determined by the microapp itself rather than be a constant in bluenet. Not necessary, maybe a nice to have.
Also a crownstone-microapp (draft) PR, see here: https://github.com/crownstone/crownstone-microapp/pull/17
Summary of changes
microapp_result_t
command
torequest
softInterrupt
tointerrupt
To do