FIX
.cproject file keeps disapearing :(((
This commit is contained in:
@@ -6,18 +6,18 @@ char tcp_buffer[1024];
|
|||||||
|
|
||||||
#define MAX_REG 100
|
#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){
|
static err_t modbus_incomming_data(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err){
|
||||||
int i;
|
int i;
|
||||||
int len;
|
int len;
|
||||||
char pc;
|
char *pc;
|
||||||
|
|
||||||
if (p != NULL){
|
if (p != NULL){
|
||||||
printf("data not null\n");
|
printf("data not null\n");
|
||||||
//here im going to procces the modbusdata
|
//here im going to procces the modbusdata
|
||||||
tcp_recved( pcb, p->tot_len );
|
tcp_recved( pcb, p->tot_len );
|
||||||
pc = (char)p->payload;
|
pc = (char*)p->payload;
|
||||||
len =p->tot_len;
|
len =p->tot_len;
|
||||||
|
|
||||||
//putting the bufer in the register array
|
//putting the bufer in the register array
|
||||||
|
|||||||
Reference in New Issue
Block a user