As you can see there is a lot of garbled characters but the output is an "OK" at the end.
I then assume that the Serial4 is sat at the ">" prompt where I would then enter the text for the text message so I go ahead with the following command:
>Serial4.println("testing a sms message");
=undefined
From here I know I need to send a CTRL+Z character at the prompt to send the message so I carry out the following:
>Serial4.write(0x1A);
=undefined
However.. I receive nothing. I would expect to see an ID number pop up and the message to go through to my phone.
Any ideas where I am going wrong here I've been messing around with all the variants I can think of - changing the Serial.write to print and print to println with no luck.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi All,
I'm a bit stuck when trying to send a text message via my GSM2 Click device which uses the M95 chip.
I have the module accepting AT commands through Serial4 however I really can't get the syntax working correctly to send a SMS message sucesfully.
I can carry out the following commands:
I firstly set the chip to Text Mode:
I then set the number to send the SMS to (I have added in the xxx's for anonymity)
As you can see there is a lot of garbled characters but the output is an "OK" at the end.
I then assume that the Serial4 is sat at the ">" prompt where I would then enter the text for the text message so I go ahead with the following command:
From here I know I need to send a CTRL+Z character at the prompt to send the message so I carry out the following:
However.. I receive nothing. I would expect to see an ID number pop up and the message to go through to my phone.
Any ideas where I am going wrong here I've been messing around with all the variants I can think of - changing the Serial.write to print and print to println with no luck.