Extension to serial communication. GetInput() method that takes string input from serial device. Work still in progress.
Bluetooth.h
- Committer:
- nzupcic
- Date:
- 2021-09-21
- Revision:
- 0:31203426e0fb
File content as of revision 0:31203426e0fb:
#ifndef BLUETOOTH_H #define BLUETOOTH_H #include <string> #include <cstdlib> #include "mbed.h" class Bluetooth : public Serial{ public: Bluetooth(PinName tx, PinName rx); float State(); void Init(); private: bool state; char GetKey(void); void PutKey(char key); void AskUser(string msgString); float ReturnAnswer(float value); string GetStringInput(void); }; #endif