Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/addiva-elektronik/zephyr-mbus-module
Port of libmbus to Zephyr
https://github.com/addiva-elektronik/zephyr-mbus-module
zephyr-modules zephyr-rtos
Last synced: 3 months ago
JSON representation
Port of libmbus to Zephyr
- Host: GitHub
- URL: https://github.com/addiva-elektronik/zephyr-mbus-module
- Owner: addiva-elektronik
- License: bsd-3-clause
- Created: 2022-09-21T14:17:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-03T08:54:49.000Z (over 2 years ago)
- Last Synced: 2024-07-30T21:08:14.582Z (6 months ago)
- Topics: zephyr-modules, zephyr-rtos
- Language: C
- Homepage:
- Size: 177 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Zephyr Port of libmbus
======================To use this Zephyr module in an application, see [zephyr-mbus-app][].
Make sure to use matching versions of the two.When you've set up your `west.yml` and enabled the Zephyr shell, your
main function should look something like this:```C
#includeint main(void)
{
return mbus_init();
}
```If you are using the nRF Common Application Framework (CAF) you need a
slightly more complex `main()` function, but otoh you don't need to call
`mbus_init()` anymore.```C
#define MODULE main#include
#include
#includeLOG_MODULE_REGISTER(MODULE);
int main(void)
{
/* Start CAF and signal that main have completed system setup */
if (app_event_manager_init()) {
LOG_ERR("Application Event Manager not initialized!");
return 1;
}settings_subsys_init();
settings_load();LOG_DBG("Event manager initialized.");
module_set_state(MODULE_STATE_READY);return 0;
}
```Origin & References
-------------------This is the Zephyr port of the *Addiva Elektronik fork* of the original
M-bus Library. For more information, see [libmbus][].[libmbus]: https://github.com/addiva-elektronik/libmbus
[zephyr-mbus-app]: https://github.com/addiva-elektronik/zephyr-mbus-app