An application to log WiFi SSIDs for position lookup testing
Dependencies: C027_Support SWO mbed-rtos mbed picojson
Fork of lpc4088_ebb_ublox_Cellular_PubNubDemo_rtos by
Diff: device/DeviceFeedback.h
- Revision:
- 1:cac9b2960637
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/device/DeviceFeedback.h Sun Feb 15 22:04:12 2015 +0000 @@ -0,0 +1,27 @@ +#pragma once + +#include <stddef.h> +#include "mbed.h" +#include "rtos.h" + +/** + * Device Feedback handler + */ +class DeviceFeedback +{ +public: + DeviceFeedback(PwmOut led); + + void showSuccess(); + void showFailure(); + +protected: + void sendMessage(uint8_t); + void thread(); + static void thread_func(void const*); + +private: + PwmOut _led; + Thread _thread; + Mail<uint8_t, 16> _mail; +};