Hi,
I am creating an app using NSBapp App Studio https://www.nsbasic.com/ to control some remote motors.
This is what i would like to achieve:
- Create app using App Studio
- Control motors using app via wifi. I can assign the access point an IP address and then send to the IP address using the app and ajax via wifi.
- Turn motors on and off based on app settings
Problem:
- Can i use PHP code with an arduino with wifi and a wireless access point? The arduino cannot be connected to a PC and it will be positioned outdoors.
- I need to be able to send and receive from app (if PHP can be used, should be ok).
Greatly appreciate any advice
Thanks
Can i use PHP code with an arduino with wifi and a wireless access point?
You can run PHP on the server that the Arduino connects to, via WiFi. You can not run PHP on the Arduino.
You can run PHP on the server that the Arduino connects to, via WiFi. You can not run PHP on the Arduino.
What i'd like to have is a Arduino or something similar connected to the wireless access point, which can then connect to the app. If i had the Arduino and access point in the middle of a football field, how could i use a server with PHP? I need to use this remotely.
Cheers
What i'd like to have is a Arduino or something similar connected to the wireless access point
A wireless access point is not a magic bullet. It provides access to a wireless network. A network has clients and servers. The Arduino can play either role, but it can not execute PHP scripts. Some other device on your wireless network will have to. If the only other device on the network is your phone, it will have to run PHP, if that is a requirement.
Though there doesn't seem to be any reason to use PHP to control a motor or two.