send string from PC to ARDUINO

hello everyone and congratulations for this wonderful forum!

I state that I am not an expert; I only played a bit with various sensors and realized some projects ...

now I need an advice to make one (or more) display + arduino + wifi

the displays must show a string contained in a file (shared folder on the PC) or sent directly from the PC

the final project plans to realize 10, 20 ...30 displays (display + arduino + wifi)

the ideal would be that every arduino opened and read his file, example:

Arduino #01 opens the file arduino1.txt, reads "Hello World", and writes it to the display

my problem, obviously, is NOT the display :slight_smile: my problem is HOW to access files via WiFi! :-/

as hardware I thought about using an Arduino / Genuine MKR1000

some idea?

thank you, Matteo.

my problem is HOW to access files via WiFi!

How would YOU access a file on another PC via WiFi? Do you even understand what that means?

You make GET requests using a WiFi or Ethernet shield. The GET request runs the specified script on the specified server, with the specified data.

So, clearly, you need to develop a script that runs on some server that knows how to read "the file", and you need to make a GET request to execute that script. One of the pieces of data you could pass to the script is the name of the file to read. Another could be the record number. It all depends on what the script needs, in order to return to you the data you want.

Put the Arduino away for now. Get the script working, calling it from a web browser. When it works, then get the Arduino back out, and make it call the script.

PaulS:
Put the Arduino away for now. Get the script working, calling it from a web browser. When it works, then get the Arduino back out, and make it call the script.

+1

...R

ok, I think I have not explained well...

I did not want to install a web server... I wanted the application to work all the time, and "everywhere", so I was talking about "file"

given a pc "server" (eg 192.168.0.123) with a shared folder (eg "share")

the management application write a file for each arduino in the network (eg arduino1.txt, arduino2.txt, etc ...)

arduino # 01 every 30sec reads the contents of the file \192.168.0.123\share\arduino1.txt
arduino # 02 every 30sec reads the contents of the file \192.168.0.123\share\arduino2.txt
etc...

it's possible to do it? ...or is it better to use a Raspberry? :smiling_imp:

it's possible to do it?

No. The Arduino can NOT, by itself, read files anywhere. It hasn't a clue what a file is. It hasn't a clue where the file is that you expect it to read.

Arduinjo:
given a pc "server" (eg 192.168.0.123) with a shared folder (eg "share")

That capability is a feature of the Operating System and an Arduino has no operating system

...R