but I got the difficulties on getting data from firebase and send it back to arduino
the PHP code/script I am using is just for sending data to firebase
I don't have ideas on receiving a data from firebase
any PHP experts?
Code: Select all
<?php require 'firebaseLib.php'; $Trash = $_GET["trash"]; $Distance = $_GET["distance"]; $Temperature = $_GET["temp_f"]; $Humidity= $_GET["humidity"]; // --- This is your Firebase URL $baseURI = 'https://thesis1-69.firebaseio.com'; // --- Use your token from Firebase here $token = 'gg'; // --- Here is your parameter from the http GET $devicestatus= array('Distance' => $Distance,'Temperature' => $Temperature,'Humidity' => $Humidity); $firebasePath = '/thesis1-69/'; $full= array($Trash => $devicestatus); /// --- Making calls $fb = new Firebase($baseURI, $token); $fb -> update($firebasePath, $full); ?>