This page describes the methods in the Map for sending data and commands to the map visualizer. The map visualizer shows geographic markers on a MapQuest map.

Methods

Create a Map variable and uses these methods to send data to a map visualizer.

Method Descriptions

Map Constructor

Creates a Map variable, which can be used to send commands and data to a MegunoLink map visualizer.
Map()
Map(Print& Destination = Serial)
Map(const char* Channel, Print& Destination = Serial)
Map(const __FlashStringHelper* Channel, Print& Destination = Serial)

Parameters
Name Type Required? Description
Channel const char *, const __FlashStringHelper No The name of the destination channel for report table messages. Defaults to the broadcast channel (NULL).
Destination Print & No Sets the serial connection to use for sending messages to MegunoLink. Defaults to Serial, the default Arduino RS232 port.

Send Data

Send a map location to MegunoLink. The location is marked on the map and shown in the list of locations.
SendData(const char* Placename, const char* Latitude, const char* Longitude)
SendData(const __FlashStringHelper* Placename, const char* Latitude, const char* Longitude)
SendData(const char* Placename, float Latitude, float Longitude)
SendData(const __FlashStringHelper* Placename, float Latitude, float Longitude)

Parameters
Name Type Required? Description
Placename const char *, const __FlashStringHelper Yes The name of the location.
Latitude const char*, float Yes The latitude of the location.
Longitude const char*, float Yes The longitude of the location.

Leave a Comment

Start typing and press Enter to search