2018-04-20 03:08 PM
so this is my function that works fine when i add it to the script :
but once i pass the inside message on Sprintf to make once of the values taken from a variable and do the same thing again like this :
it won't work
this is the send function :
if anyone can help please and thanks
#lwip #stm32f7Solved! Go to Solution.
2018-04-20 03:40 PM
Make sure your msggg1 character array is allocated with sufficient space behind it to hold the data you are generating.
sprintf() returns the string length
So smarter implementation looks like
netconn_write(pAcceptedConnection, msggg1, sprintf(msggg1,'..',..), NETCONN_COPY);
sscanf/sprintf may also have stack utilization, check it is sufficient
2018-04-20 03:40 PM
Make sure your msggg1 character array is allocated with sufficient space behind it to hold the data you are generating.
sprintf() returns the string length
So smarter implementation looks like
netconn_write(pAcceptedConnection, msggg1, sprintf(msggg1,'..',..), NETCONN_COPY);
sscanf/sprintf may also have stack utilization, check it is sufficient
2018-04-20 05:58 PM
Thanks for responding as usual sir,
sadly that didn't work .. i even tryed to change sending function but it didn't work
2018-04-20 06:07 PM
sorry i checked again, thank you very much ! man u r a savior as usual !