Using freertos Plus, got it ported to my hardware and super pleased with how this is going. Got great help here on the forums as well. Now I’m connected to the internet i’m having a go at mqtt. Trying plain text with no credentials for now and hoping to secure it with tls and credentials next. Just having trouble connecting to the server and i’ve found that the result of the output of prvGetHostByName is an uint32. Here’s the problem, if i put the int generated into this site. https://www.abuseipdb.com/tools/ip-address-converter
I comes up as the reverse of what i wanted. So my server address is w.x.y.z. but the result of the lookup returns z.y.x.w at least according to the the site i listed. Is this normal? does this get changed later by the driver or something? Or might this be the reason my connection to the server fails. the file version of FreeRTOS_DNS.c is V2.2.1.
but maybe that website is wrong because this gives the correct answer.
uint32_t tmp = FreeRTOS_gethostbyname( pcHostName ); FreeRTOS_inet_ntoa( tmp, ( char * ) cBuffer );