Skip to content

Communication protocol where you can expose code variables for read/write, initially on an arduino

Notifications You must be signed in to change notification settings

robotadasufsc/Exposer

Repository files navigation

Exposer Build Status


An Arduino Library to enable changing variables via serial communication.

How to use:

  • Include the library

```#include "exposer.h"````

  • Instantiate the Exposer:

Exposer* exposer = &Exposer::self();

  • Register any variables you wish to expose:

exposer->registerVariable("Variable", Exposer::_uint8_t, &Variable);

This exposes Variable, and tells the interface it's a uint8_t type, named "Variable" on the interface.

Now a serial interface is able to view and edit this variable.

About

Communication protocol where you can expose code variables for read/write, initially on an arduino

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published