1 of 1 people found this helpful
I'm going to assume that you are able to create the P2P connection by following the steps provided on Intel® Edison Boards — Wi-Fi User Guide. If you have any issues creating it, let me know and I'll try to help you.
Being that said, you can find the package sftp in AlexT's Repo. Follow the steps mentioned in that link in order to be able download the package and then type: "opkg install openssh-sftp". I'd suggest you to install the package before you create the P2P connection. Once the connection and you are able to ping from one device to the other and vice versa; you can run sftp.
As I mentioned in Re: Wifi Direct data transfer you only need to type "sftp user@host". So if you were to connect to another Edison then you should have to enter a line like:
After that you will enter the sftp environment and you should be able to copy any file from the Edison with the command "get". It'd look like this:
I would highly recommend you to check sftp(1): secure file transfer program - Linux man page so you can learn more about how sftp works.
In regard your second question. I don't know how you are saving the sensors data, but I would store the data of each sensor in separate .txt files so they can be retrieved easily after. As I mentioned I don't know which sensors you are using or how they send the data. But let's assume they send data through a string on a serial port; so I would include in my script two system calls that retrieve the date and time of the data and the data itself.
Very thanksful! I will try it!
Peter. I am trying what you suggest. by the way, I want to send data in real-time, not files. maybe can I send sensor data in real-time? Is there protocol to do it?