Inside this document, you'll find the preliminary information about the new features and changes related to Ewon Flexy FWR 15.1s0PR.
Flexy, Cosy131
Detailed release notes can be found here: release notes
In this document we will focus on:
Using basic script, Ewon Flexy is now able to export files to an SFTP server.
PUTSFTP S1, S2, S3
| Parameter | Description |
|---|---|
| S1 | Destination filename (including optional path) to create or overwrite on the SFTP server. |
| S2 | Content to upload to the server. This can be: • A filename or data source such as [$dtEV] (event logs) • Literal text (string) • A BASIC string variable |
| S3 |
SFTP connection parameters formatted as: Warning: |
PUTSFTP uploads data from the Flexy device to a remote SFTP server.
The destination file on the server is created if it does not exist, or overwritten if it already exists.
If the port is not specified, the Flexy uses the default SFTP port (22).
Connection failures (bad login, bad password, unreachable host, invalid port) are reported in the Realtime Logs.
Short passwords (< 8 characters) generate a warning and are not sent to the server.
PUTSFTP "flexy205/events.txt", "[$dtEV]", "tester:[email protected]"
PUTSFTP "plaintext.txt", "Hello, it is a simple text", "tester:[email protected]"
A$ = "Text ABCD" PUTSFTP "textfromvar.txt", A$, "tester:[email protected]"
GETSFTP S1, S2, S3
| Parameter | Description |
|---|---|
| S1 | Source filename (with optional path) on the SFTP server. |
| S2 | Destination filename on the Flexy. |
| S3 | SFTP connection parameters formatted as:user:password@servername[:port]
|
GETSFTP retrieves a file from a remote SFTP server and writes it to the Flexy filesystem.
Transfer and failure notifications appear in:
GETSFTP "README.txt", "/usr/fromServer.txt", "tester:[email protected]"
GETSFTP "README.txt", "/usr/fromServer.txt", "tester:[email protected]:23"
GETSFTP "newprogram.bas", "/program.bas", "tester:[email protected]"
The Ewon GUI now properly handles web session timeouts.
The following SYS (config.txt) parameter can be used to configure the timeout value.
SYS Parameters
| Name | Description | Default Value | Acceptable Values |
| LogoutOnIdle | Enable session timeout for Ewon GUI | 0 | 0 | disabled 1 | enabled |
| SessionCookieTTL | This parameter defines the cookie's Time to Live (TTL). Once this time expires, if the server hasn't renewed the cookie, it will be deleted, the session will end, and the user will be redirected to the login screen. | 1200 | Between 300 and 43200 seconds |
In this firmware version, the Flexy is able to send characters from the 8859-1 charset by SMS via the FLB3208 or FLB320A extension card. Originally, SMS encoding is based on GSM 7 charset.
To switch the encoding mode in the Flexy, the value +CSCS="GSM" of the modem Init string must be switched to +CSCS="8859-1" :
GSM 7
8859-1 Latin 1
© HMS Networks AB 2025