The monitor shows all received data on a particular connection, either Serial or UDP. Check out our Getting Started with Arduino Serial Monitoring article for step by step instructions.
Open a Monitor visualiser and select your target connection (already setup in the Connection Manager). Any data being sent to your computer on that connection will be listed in order of arrival. Incoming messages can also be timestamped using default (2015-05-12 19:58:05:) or custom options. Data captured by the monitor can be saved or copied for later use.
The MegunoLink Monitor also displays messages sent in the other direction, that is from MegunoLink to your device. In the screenshot these outgoing messages are shown in orange. The text box at the bottom of the monitor allows you to send manually typed messages, in this case, ‘HelloWorld!’.
- There are a number of escape codes you can use including \n (newline), \r (carriage return), \t (tab), \\ (slash) and \xnn (send hex value, n=digit)
- Carriage returns and new line characters, typically non-printable, are shown in MegunoLink’s monitor as left pointing and down pointing arrows, respectively.
- Other non-printable characters show up as a diamond symbol.
- The down facing arrow () on the toolbar toggles autoscroll. This prevents automatic scrolling as new data arrives.
The Message Monitor allows you to separate messages from all the other data that is coming across the connection to the micro. These messages can also be tagged to further group and filter from other messages. For example you could specify a channel as ‘Debug’ where only debug messages will be displayed.
Like the standard monitor, the text box at the bottom allows you to send manually typed messages, in this case, ‘HelloWorld!’.
The Message Monitor has one final trick up its sleeve, text to speech. Simply enable it using the speech bubble icon and each message received will be read aloud.
Send a serial string in either of these formats to your computer:
channelName = "Secret"
An example Arduino code function is shown for sending Messages to MegunoLink Pro (pass an empty string (“”) for
channelName for no channel):
void MessageMonitor(String message, String channelName)