This repository contains a C implementation of the Wirepas Dual MCU API. The Dual MCU API allows the exchange of data between a host and a Wirepas node via UART. The C-Mesh library is used by the Wirepas Gateway software but can also be used in case of a Dual MCU architecture.
The C implementation is available from lib and is structured in the following folders:
- api: header files for the WM dual mcu api
- platform: host platform functions for interface handling
- wpc: implementation of the WM dual mcu api
An example on how to use and extend the library is available from:
To run the tests you will to connect a device running WM's dual mcu api on your host machine.
Tests require Google Test. On Debian and Ununtu, you can install the package libgtest-dev.
Build the tests with
cd test
make
When executing the tests, environment variables WPC_SERIAL_PORT and WPC_WPC_BAUD_RATE should be set. For example:
WPC_SERIAL_PORT=/dev/ttyACM0 WPC_BAUD_RATE=125000 ./build/meshAPItest
We welcome your contributions!
Please read the instructions on how to do it and please review our code of conduct.
Wirepas Oy licensed under Apache License, Version 2.0 See file LICENSE for full license details.