Topic: Porting timeval Structure To NXP MQX
Hello,
I am trying to port wolfMQTT to an NXP processor running the MQX v4.2 OS. The compiler is telling me that file mqttnet.c needs a structure "timeval" ('error: dereferencing pointer to incomplete type'). I made one up (what I THINK it wants) and put it in the file:
struct timeval {
int tv_sec;
int tv_usec;
}
The error goes away. But do I need to increment/decrement those structure variables based on time or does wolfMQTT handle that? Thank you.