Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void receive(char* buffer, unsigned int bufferLength);
- void send(char* buffer,unsigned int bufferLength);
- ////////////////////////////////////////////
- void receive(char* buffer, unsigned int bufferLength)
- {
- uint8_t headerSize = 2;
- if (bufferLength >= headerSize){
- uint8_t actiune = buffer[0];
- uint8_t lungimePayload = buffer[1];
- switch(actiune){
- case 1:
- break;
- }
- }
- }
- void send(char* buffer,unsigned int bufferLength){
- /*
- const int payLoadSize=20;
- buffer[0]=9; //comanda
- buffer[1]=payLoadSize;
- Joc *p=new Joc();
- buffer[2]=p->getWord();
- */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement