#include <WiFiNINA.h>
#define sensorPin A5
char ssid[] = "test";
char pass[] = "";
int status = WL_IDLE_STATUS;
char server[] = "www.elithecomputerguy.com";
String postData;
String postVariable = "temp=";
WiFiClient client;
void setup() {
Serial.begin(9600);
while (status != WL_CONNECTED) {
Serial.print("Attempting to connect to Network named: ");
Serial.println(ssid);
status = WiFi.begin(ssid, pass);
delay(10000);
}
|
http://yourphpserver/add_data.php?variable1=value1&variable2=value2&variable3=value3... |
PHP Script – post.php
|