PS: Look, I'm not asking you for programs. But pasting here an excerpt from among the thousands of functional codes that I know you have in your repertoire.
You can't print element #4 of the array because it doesn't exist. Remember arrays start at "0" (like you correctly used in the other statement). So element #4 is the fifth element which does not exist.
For the question of the initial topic none of this is necessary. Those who read it know that I'm asking about how the variable to read the 4 octets of the IP address would be. Just that.
Strange that you find that strange. But rest assured, go in peace, enjoy the weekend, and leave me here with my doubts waiting for others who want to help.
But I can not. I tried to make that receiveddata only be equal to datatx when its length is = 30 which would indicate the end of receiving by the serial uart but it doesn't work.
Anywhere else in the code, datatx or received is always empty
I think it makes sense because datatx will be empty very quickly, right after receiving the data, if receiveddata = datatx then it will also be empty.
I tried to make the equality between received = datatx only when resize was equal to 13 (because 192.168.xx.yy contains 13 characters).
But it did not.
Does anybody know how to solve this ? and could you post the code?
I was wanting to fragment and then join the octets of the IP address because I was not able to send it through the serial uart from an esp32 cam to an esp32.
My stupidity, one more.
I did it like this and managed to send it without fragmenting anything: