Hello,
I use a ethernet-card based on ENC28J60 and I use the library: etherCard
I have a question to resolve about the function: ether.browseUrl
I have on server a page php:
<?php
$p = $_GET['rfid'];
echo "#".$p."@";
?>
On Arduino 1.0.5
If I write:
ether.browseUrl(PSTR("/putrfid2.php?rfid="), "A3F5EE01", website, my_callback);
It works, I receive the response by 'my_callback' that write on serial the value passed by rfid:
I receive: #A3F5EE01@
But If I write:
char test[10]="A3F5EE01";
ether.browseUrl(PSTR("/putrfid2.php?rfid="), test, website, my_callback);
I dont have any error by compiling, but I dont receive the right response in 'my_callback', I receive strange characters instead of value passed by rfid:
I receive: #)@
or: #QW((@
What is wrong?
Thank you.