Arduino Function: RobotControl.userNameRead

Description

This function reads the name stored in EEPROM with userNameWrite(). EEPROM is not erased when the robot is turned off and can be read anytime after being set.

Syntax

Robot.userNameRead(container)

Parameters

container: a char array with 8 elements.

Examples

#include 

void setup(){
 Serial.begin(9600);
 Robot.begin();
}

void loop(){
 Robot.userNameWrite("Paul");
 Robot.robotNameWrite("Robocop");
 Robot.cityNameWrite("Paris");
 Robot.countryNameWrite("France");

 char container[8];
 Robot.userNameRead(container)
 Serial.println(container);

 Robot.robotNameRead(container)
 Serial.println(container);

 Robot.cityNameRead(container)
 Serial.println(container);

 Robot.countryNameRead(container)
 Serial.println(container);
}


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc