GET call to stores value

The SparqEE CELLv1.0 device.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Lucadp
Posts: 1
Joined: Tue Apr 26, 2016 11:59 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

GET call to stores value

Postby Lucadp » Wed Apr 27, 2016 12:11 am

Hello everyone! I'm working with Sparqee cell v1.0 for a practical course in my University. My project is to read value from an Arduino board and to send this value to a database.
To begin I write a php page that stores in .txt file values that I pass with URL call in Browser.

The site is 130.206.127.66/scrivi.php and for store value I must write this URL:

130.206.127.66/scrivi.php?nome=luca&cognome=pippo

I am using AT commands, but I don't understand how send GET request:

AT+ZIPCFG=ibox.tim.it //set APN to connet to network
AT+ZIPCALL=1 /start call
AT+ZIPOPEN= 1,0,130.206.127.66,80 // connect to server
AT+ZIPSEND=1/ starting sending

>GET /scrivi.php?nome=luca&cognome=pippo HTTP/1.1
Host:130.206.127.66

I received an ok as answer from Cell, but my .txt file don't get the value. Can someone help me?

Sorry if my english is not so good.

User avatar
donjohnii
Site Admin
Posts: 686
Joined: Tue Jul 30, 2013 2:19 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: GET call to stores value

Postby donjohnii » Fri May 13, 2016 6:07 pm


User avatar
donjohnii
Site Admin
Posts: 686
Joined: Tue Jul 30, 2013 2:19 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: GET call to stores value

Postby donjohnii » Fri May 13, 2016 6:08 pm

The issue is typically in the newlines being interpreted correctly by the module.


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “CELLv1.0”

Who is online

Users browsing this forum: No registered users and 5 guests