Official reference client implementation for Cumulocity SmartREST on u-blox C027.

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Vincent Wochnik

io/DeviceFeedback.h

Committer:
vwochnik
Date:
2014-10-30
Revision:
65:a62dbef2f924
Child:
67:c360a2b2c948

File content as of revision 65:a62dbef2f924:

#ifndef DEVICEFEEDBACK_H
#define DEVICEFEEDBACK_H

#include <stddef.h>
#include "mbed.h"
#include "rtos.h"

class DeviceFeedback
{
public:
    DeviceFeedback(PwmOut speaker);
    
    void closeRelay();
    void openRelay();
    
protected:
    void thread();
    static void thread_func(void const*);

private:
    PwmOut _speaker;
    Thread _thread;
    Mail<uint8_t, 16> _mail;
};

#endif