Changes between Version 20 and Version 21 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Comm/CComm
- Timestamp:
- 03/12/25 08:17:32 (4 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/ApplicationLibraries/lib825ev/Comm/CComm
v20 v21 8 8 9 9 === Send === 10 {{{ 10 {{{#!c++ 11 11 virtual int Send(CCommConnection *pConnection, const uint8* data, int len) 12 12 }}} … … 35 35 36 36 The Process method must be called regularly for the communication channel to be serviced allowing any receive events to occur. This should usually be done in the app background event such as: 37 {{{ 37 {{{#!c++ 38 38 BACKGROUND_EVENT(Comm) 39 39 { … … 47 47 === !AddRcvEvent === 48 48 49 {{{ 49 {{{#!c++ 50 50 void AddRcvEvent(uint8 chr, int (*pDataEvent)(CComm* pComm, CConnection *pConnnection, int nData, void* pUser), int nRawCnt = 0, void* pUser = NULL) 51 51 void AddRcvEvent(uint16 startchr, uint16 endchr, int (*pDataEvent)(CComm* pComm, CConnection *pConnnection, int nData, void* pUser), int nRawCnt = 0, void* pUser = NULL) … … 77 77 ==== Example ==== 78 78 79 {{{ 79 {{{#!c++ 80 80 CComm *pComm = NULL; 81 81 // pComm is a pointer that can point to a CCommSerial, CCommClient, or CCommServer instance … … 168 168 ==== Example ==== 169 169 170 {{{ 170 {{{#!c++ 171 171 CComm *pComm = NULL; 172 172