PICloud with streampacker

This commit is contained in:
2021-04-07 14:38:32 +03:00
parent fcf9f0f80e
commit 1fd9851068
13 changed files with 90 additions and 67 deletions

View File

@@ -3,6 +3,7 @@
#include "piethernet.h"
#include "picloudtcp.h"
#include "pistreampacker.h"
class DispatcherClient: public PIObject {
@@ -23,12 +24,13 @@ public:
EVENT1(dataReaded, PIByteArray, ba)
private:
EVENT_HANDLER2(void, readed, uchar * , data, int, size);
EVENT_HANDLER1(void, readed, PIByteArray &, data);
EVENT_HANDLER1(void, disconnected, bool, withError);
PIEthernet * eth;
PITimer disconnect_tm;
bool authorised;
PIEthernet * eth;
PIStreamPacker streampacker;
PICloud::TCP tcp;
uint client_id;
};