Inside this document, you'll find the preliminary information about the new features and changes related to Ewon Flexy FWR 15.1s0PR.
APPLICABLE PRODUCTS
Flexy, Cosy131
IN THIS ARTICLE
New features and changes
Detailed release notes can be found here: release notes
In this document we will focus on:
- New basic script functions (GETSFTP,PUTSFTP) . SFTP client support added to export files.
- Session timeout added in the web interface when there is no activity.
-
Support 8859-1 encoding for SMS on FLB3208
New BASIC script functions (GETSFTP, PUTSFTP)
Using basic script, Ewon Flexy is now able to export files to an SFTP server.
PUTSFTP
Syntax
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: |
Description
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.
Examples
Create a file on the server using an EBD
PUTSFTP "flexy205/events.txt", "[$dtEV]", "tester:password@192.168.100.160"
Upload simple text
PUTSFTP "plaintext.txt", "Hello, it is a simple text", "tester:password@192.168.100.160"
Upload the content of a BASIC variable
A$ = "Text ABCD" PUTSFTP "textfromvar.txt", A$, "tester:password@192.168.100.160"
Using a custom SFTP port
PUTSFTP "eventsPort23.txt", "[$dtEV]", "tester:password@192.168.100.160:23"
GETSFTP
Syntax
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]
|
Description
GETSFTP retrieves a file from a remote SFTP server and writes it to the Flexy filesystem.
- If the destination file exists, it is overwritten.
- If omitted, the port defaults to 22.
- The destination path must be a valid, allowed path.
Invalid or unsafe paths result in security errors and the transfer fails.
Transfer and failure notifications appear in:
- Event Logs → destination path errors, invalid sources
- Realtime Logs → SFTP connection or transfer errors
Examples
Retrieve & overwrite an existing file
GETSFTP "README.txt", "/usr/fromServer.txt", "tester:password@192.168.100.160"
Retrieve file using a custom port
GETSFTP "README.txt", "/usr/fromServer.txt", "tester:password@192.168.100.160:23"
Update a root‑level program file
GETSFTP "newprogram.bas", "/program.bas", "tester:password@192.168.100.160"
Session timeout added in the web interface
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 |
Support 8859-1 encoding for SMS on FLB3208
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