How to read text files from PC
omarmonzer
Posts: 6
in Propeller 1
I want the propeller activity board to read a text file on my laptop and do some task according to the value it reads. The text file content changes regularly.
Any ideas?
Any ideas?
Comments
An Activity Board with the WX wifi module can interact with a JavaScript program running in a web page on the laptop so that the laptop sends a specific text file to the wifi module periodically where the Propeller can read it. There are examples of this in the Learn website project for the WX module (see this).
If you are capable of programming in C++, this link will help with the serial transmission part of things: https://codeproject.com/Articles/992/Serial-library-for-C. At this link, you will find a program which can be altered for opening, reading, and closing files, as well as serially transmitting the data.
Good Luck
Then, maybe the WiFi module (if WX version of activity board) might be able to access this website?
Seems like it should work... Have to be careful with security though...
Here is a link to one.