Telit LE910 V2 Series AT Commands
80446ST10707A Rev. 0– 2015-11-03
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved page 356 of 509
Mod. 0808 2011-07 Rev.2
Base64 encoding/decoding of socket sent/received data - #BASE64
#BASE64 – Base64 encoding/decoding of socket sent/received data
<connId>,<enc>,<dec>
[,<unused_B >
[,<unused_C >]]
Set command enables base64 encoding and/or decoding of data
sent/received to/from the socket in online or in command mode.
Parameters:
<connId> - socket connection identifier
1..6
<enc>
0 – no encoding of data received from serial port.
1 - MIME RFC2045 base64 encoding of data received from
serial port that have to be sent to <connId> socket.
Note: as indicated from RFC2045 the encoded output stream is
represented in lines of no more than 76 characters each.
Lines are defined as sequences of octets separated by a CRLF
sequence.
2 - RFC 3548 base64 encoding of data received from serial port
that have to be sent to <connId> socket.
Note: as indicated from RFC3548 CRLF have not to be added.
<dec>
0 – no decoding of data received from socket <connId>.
1 - MIME RFC2045 base64 decoding of data received from
socket <connId> and sent to serial port.
(Same rule as for <enc> regarding line feeds in the received file
that has to be decoded)
2 - RFC3548 base64 decoding of data received from socket
<connId> and sent to serial port.
(Same rule as for <enc> regarding line feeds in the
received file that has to be decoded)
Note: it is possible to use command to change current
<enc>/<dec> settings for a socket already opened in command
mode or in online mode after suspending it.
(In this last case obviously it is necessary to set
AT#SKIPESC=1).
Note: to use #BASE64 in command mode, if data to send
exceed maximum value for #SSENDEXT command, they have
to be divided in multiple parts.