Hello, before posting this, i have searched on this forum a solution to the problem i have. Unlucky, i haven't found yet.
Why i am here? Why do i need? Of course, it's your help on the next thing.
I am creating a char variable with 5 position like this: "char t[4];". Next, i'm assigning char values in each index of the variable. Then, i am creating a pointer variable to save the direction of the first element of t. Finally, i want to check the address but it gave me an error like this: "cannot convert 'char*' to 'int*' in assignment". I think, i'm doing bad assigments but not really sure.
My question is: ¿How can i get the address of a char array?
Hello, i already solved the problem taking account your advices.
My initial problem wasn't the one i posted at the beginning. It was a part of the problem. But i'm gonna explain it above.
I'm sending char character trough I2C between Arduino Nano & ESP8266EX (Nodemcu). Nodemcu works as master and Nano as slave. Nano is getting a float temperature value and Nodemcu ask for the value sending a command, once received the command i turn the value into a char array with dtostrf function and i send it with Wire.write(value) byte to byte. After, Nodemcu has to reconstruct the value saving each byte readed in a local array. The real problem was that garbage was being printed in data received.
As i said, taking account your advices i could fix the problem. Maybe is not the best solution but i'm gonna post the function which gets a string value from I2C without getting garbage.