Does Anyone have any suggestions for a FTP Server library to run on a P2 that works with the Particle file system?
Have an application where we want to be able to load a couple of config files onto our device during the commissioning of it on the customer site. Was thinking a of enabling an FTP server during the commissioning so we could push the files from a PC to the device, then disable it again. Each device will get a unique set of files generated onsite by the customer, so Asset OTA not suitable.
I wouldn't use FTP. It requires a listening TCP port, so it won't work on cellular devices. If it's a Wi-Fi device it could be possible on the LAN, but you'd need to discover the local IP address. And there isn't a good library for FTP server.
I would load the config by Asset OTA if it's only set once, Ledger if updated periodically. If setting locally by USB and a laptop, I might consider using USB control requests and custom firmware.
It will be on the P2 only this application as we need the extra RAM for the application, likely will be on Ethernet as well and we have a method of identifying the IP address of the device. The USB is not accessible on the device either. There is also a good chance this application will be in offline systems so Asset OTA and Ledger not suitable. May have to resort to loading via BLE as a last resort, just requires a bit more development work for this approach.
Hey Gary,
how about the P2 doing an HTPP GET request?
You could expose the files somewhere in a server and the device downloads them.
Note: If you wanted to encrypt that request, that will use a lot of RAM.
Best,