Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
MessageBuilder.h
- Committer:
- yaaqobhpt
- Date:
- 2021-05-03
- Revision:
- 0:c25c4b67b6a1
File content as of revision 0:c25c4b67b6a1:
#ifndef MESSAGEBUILDER_H_ #define MESSAGEBUILDER_H_ #include "mbed.h" class MessageBuilder { private: static const char max_len = 32; char *_pointer; public: char message[max_len]; MessageBuilder(); virtual ~MessageBuilder(); char add(const void* data, size_t len); char add(char data); char add(float data); char add(int data); char add(unsigned int data); void reset(); unsigned char available(); unsigned char length(); }; #endif /* MESSAGEBUILDER_H_ */