Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
in a number of the write or send functions in the library such as i2c and udp, the data to be transmitted is declared as a const char such as
write
int write( int address, const char * data, int length, bool repeated = false )
Write to an I2C slave
Does not the const char array have to be declared as an initialized value, which is stored in rom verses the plain char array which allows the data to be determined at any time, stored in ram.