.cproject file keeps disapearing :(((
This commit is contained in:
Obe Van Lierde
2023-11-07 22:36:53 +01:00
parent 5daa53ee6a
commit 7e148b57ea

View File

@@ -6,18 +6,18 @@ char tcp_buffer[1024];
#define MAX_REG 100
uint16_t registers[MAX_REG];
char registers[MAX_REG];
static err_t modbus_incomming_data(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err){
int i;
int len;
char pc;
char *pc;
if (p != NULL){
printf("data not null\n");
//here im going to procces the modbusdata
tcp_recved( pcb, p->tot_len );
pc = (char)p->payload;
pc = (char*)p->payload;
len =p->tot_len;
//putting the bufer in the register array