Support to speak message?

Support forum for MegunoLink
Post Reply
alains
Posts: 13
Joined: Mon Oct 24, 2016 5:44 pm

Fri Sep 20, 2019 6:02 pm

Do you still support the following in the new version? I do not find any information on your documentation.
mySerial.println("{MESSAGE|SPEAK+DATA|End of tests of "+String(maxCycles)+ "Cycles for Temperatures range: \n"+String(StartTemp) + " degree C "+"}");
Thanks
philr
Posts: 287
Joined: Mon May 26, 2014 10:58 am

Sat Sep 21, 2019 12:05 am

Hi Alain, I tried to reply to your email but it says its getting rejected. Anyway ill copy the reply here.

I tried your first example and it worked fine. I did this:
Serial.println("{TABLE|SET|Deg.C|"+String(millis())+"}");
Which printed the millis timer to the table. Seemed to work. 
x2scrap.png
x2scrap.png (15.12 KiB) Viewed 573 times
As for your second question in the email you had only DATA not SPEAK+DATA

I tried this and it worked fine on my computer.
mySerial.println("{MESSAGE|SPEAK+DATA|Parameters:"+ myParams + "}");

In short we haven't changed anything that should have broken that functionality. Confirm in your serial monitor you are getting the messages correctly. Raw messages should look like this
https://www.megunolink.com/documentatio ... reference/


Cheers
Phil
alains
Posts: 13
Joined: Mon Oct 24, 2016 5:44 pm

Sat Sep 21, 2019 2:57 am

Thanks Phil, just to make sure: In order to have the {MESSAGE|SPEAK+DATA... working I need a message monitor ,even that there is no printed data on it, just spoken data?
philr
Posts: 287
Joined: Mon May 26, 2014 10:58 am

Sun Sep 22, 2019 6:16 pm

Yes that is correct. That establishes a listener for that type of message. Without it they don't get processed by anything.
Post Reply