Arduino Function: RobotControl.cityNameRead

Description

This function reads your city's name stored in EEPROM.

Syntax

Robot.cityNameRead(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