Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
AT_CellularSMS: set "international" flag in PDU when applicable #11247
The change was tested with Quectel BG96 AT modem.
Pull request type
Currently, create_pdu receives a destination address without '+' prefix, and always sets the "type of address" to "unknown". That means, the number needs to contain appropriate international number prefix (00/011) if necessary - which is not the case if the leading + is simply stripped. This changes send_sms behavior so that when a SMS is sent to an international number (indicated by leading +): - AT+CMGS command receives the number with + prefix, - created PDU has the "international" flag set.