Protegemed / prtgmdWebSocketClient

Fork of WebSocketClient by Samuel Mokrani

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers WebsocketCaptureMonitor.h Source File

WebsocketCaptureMonitor.h

00001 #include "mbed.h"
00002 #include "rtos.h"
00003 #include "EventDetector.h"
00004 #include "Websocket.h"
00005 #include "EthernetInterface.h"
00006 #include "Settings.h"
00007 
00008 extern void WebsocketCaptureMonitor_Thread(void const *arg);
00009 
00010 class WebsocketCaptureMonitor
00011 {
00012     public:
00013         /**
00014         * Thread to start Websocket Capture Monitor
00015         *
00016         */
00017         static void WebsocketCaptureMonitor_Thread(void const *arg);
00018         
00019         /*
00020         * Prepare message get from mailbox
00021         *
00022         * 
00023         */
00024         static void PrepareMessage(CaptureEvent* dados,char *strfinal, bool isWS);
00025         
00026         /*
00027         * Send data
00028         *
00029         * 
00030         */
00031         
00032         static void DoPost(TCPSocketConnection sock, char *host, CaptureEvent* dados);
00033     
00034 };