uint16_t len = readPacket(buffer,5000); // return one full packet 301c0017637661726763616c2f66656564732f636f6e74726f6c31333431
if (len>0){
int8 topic_len=24; //cvargcal/feeds/control1
int8 f=1+4+ topic_len ; //29
// ___________ _________
// 30 1c 00 17 63 topic/data
// C 1 2 3 4
while (1){
char dat2[40];
if(strstr(buffer
+3, "control1") != 0) {
int k=0;
for (uint16_t i=0; i+f <len;i++){
dat2[k] = buffer[i+f];
k++;
}
for (uint16_t h
=0; dat2
[h
]!=0;h
++) fprintf("%c",dat2
[h
]); break;
}
}