Hi, as a disclaimer: I have some experience and in programming but it has been some time since I have applied it. I have no experience in web dev.
My goal is to read sensor values with an arduino and store them in a mysql database. So far the arduino is reading and printing to the serial port correctly. (note the serial port will not be used in the final product).
I believe there is a library for connecting an arduino directly to a mysql database over Ethernet or WiFi, but I don't think the arduino can handle this in parallel with the sensor reading and converting calculations.
Hence from what I've read so far it seems the best would be to setup a webserver running a php script (which the arduino will send data to in the form of a url) which will insert the data into the mysql database.
I will figure the code out to get a functional system, but I worry about the security of the system.
It seems this approach would allow anyone to inject data via the url.
I don't want a web page accessible at this stage. Is it possible to have a webpage running a script and not be accessible? (i envisage the final server being hosted by a 3rd party datacenter)
Any other security related concerns? Right now the data is not sensitive, but I thought it would be a good project, with a steep learning curve for all elements involved.
Any advice or resources are welcomed.
My goal is to read sensor values with an arduino and store them in a mysql database. So far the arduino is reading and printing to the serial port correctly. (note the serial port will not be used in the final product).
I believe there is a library for connecting an arduino directly to a mysql database over Ethernet or WiFi, but I don't think the arduino can handle this in parallel with the sensor reading and converting calculations.
Hence from what I've read so far it seems the best would be to setup a webserver running a php script (which the arduino will send data to in the form of a url) which will insert the data into the mysql database.
I will figure the code out to get a functional system, but I worry about the security of the system.
It seems this approach would allow anyone to inject data via the url.
I don't want a web page accessible at this stage. Is it possible to have a webpage running a script and not be accessible? (i envisage the final server being hosted by a 3rd party datacenter)
Any other security related concerns? Right now the data is not sensitive, but I thought it would be a good project, with a steep learning curve for all elements involved.
Any advice or resources are welcomed.