ktamas77 / firebase-php

Firebase PHP Client
791 stars 215 forks source link

I got 3 arduino devices with same code with same php code using this Lib but in firebase it only update 1 data not simultaneously those 3 devices it requires other device to be turn off so it can be updated #91

Open xiaomy12 opened 5 years ago

xiaomy12 commented 5 years ago

<?php require 'firebaseLib.php'; $Trash = $_GET["trash"]; $Distance = $_GET["distance"]; $Temperature = $_GET["temp_f"]; $Humidity= $_GET["humidity"]; $url = 'https://thesis1-69.firebaseio.com'; $token = 'xxxxxxxxxxxxxxxx'; $firebasePath = '/thesis1-69/'; $devicestatus= array('Distance' => $Distance,'Temperature' => $Temperature,'Humidity' => $Humidity); $full= array($Trash => $devicestatus); $fb = new Firebase($url, $token); $fb -> update($firebasePath, $full); ?>

xiaomy12 commented 5 years ago

@ktamas77 @llbbl @mintao @MiniCodeMonkey @ChrisThompsonTLDR

ChrisThompsonTLDR commented 5 years ago

I think you mistakenly mentioned me.

xiaomy12 commented 5 years ago

sir do you know how to resolve this issue? please check my php code

xiaomy12 commented 5 years ago

the library of @ktamas77 was not set to simultaneous request to firebase I don't know if it was the issue but it was not set to curl_multi_exec