Implement this Module to upload/download files on your device.
You can also do a firmware update.
Make shure you get this output in your build step:
Sizes depends on your configuration, but you need the entry "Filesystem size".
Flash size: 2.00MB
Sketch size: 1.50MB
Filesystem size: 0.50MB
Add the Module to the OpenKnx Stack
#include <Arduino.h>
#include "OpenKNX.h"
#include "FileTransferModule.h"
void setup()
{
const uint8_t firmwareRevision = 0;
openknx.init(firmwareRevision);
openknx.addModule(1, ...);
openknx.addModule(2, FileTransferModule);
openknx.setup();
}
You can use the KnxFileTransferClient to upload/download files to your device.
The FtpServer uses following FunctionProperties.
These may not used by any other module.
ObjectIndex | PropertyId | Used for |
---|---|---|
159 | 0 | Format |
159 | 1 | Exists |
159 | 2 | Rename |
159 | 40 | File Upload |
159 | 41 | File Download |
159 | 42 | File Delete |
159 | 43 | File Info |
159 | 80 | Dir List |
159 | 81 | Dir Create |
159 | 82 | Dir Delete |
159 | 90 | Cancel |
159 | 100 | Get Version |
159 | 101 | Firmware Update |