- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello sir,
i want to send sensor data to our own cloud server which is https:// ...
so how to send sensor data to cloud by intel edison using .php file
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello gau999,
Thanks for reaching out!
As you may know Edison works with Yocto, this is an embedded version of Linux. The fact that Edison runs on Linux gives you the advantage of being able to use many of the generic packages developed for Linux. PHP is compatible with Linux, this means that you should be able to use PHP on Edison just as you would on a regular Linux PC. That being said, there are a few unofficial guides on how to create and interact with web servers, but not using PHP (at least I was not able to find one that uses PHP). You can check them, in case you are interested (even though I don't think they will be of much help for this case in specific), in:
https://www.hackster.io/20035/intel-edison-tutorial-webserver-7cba87
http://forum.arduino.cc/index.php?topic=330331.0
https://developers.google.com/web/updates/2016/03/web-enabled-internet-of-things
I would instead suggest you to read tutorials on how to approach this with regular PHP, as you should be able to access it on Edison. I would recommend you to start with:
http://php.net/manual/en/sockets.examples.php
http://php.net/manual/en/features.remote-files.php
There are many more guides on PHP's documentation, therefore, I would highly suggest you to check them. I believe they will be of much help for your project.
I hope this information helps you,
Pedro M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello gau999,
Do you have any updates about this?
Pedro M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
hello sir,
thanks for reply
we want to call the .php file which is located on cloud server using intel edison wifi
what is the procedure for that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
As I mention, there is not a specific guide for doing this on Edison, nevertheless, there are a lot of useful guides on the internet. You can start by reading the guides I shared above but I also found some documents that you could find of help:
http://www.easysoft.com/developer/languages/php/sql_server_unix_tutorial.html http://www.easysoft.com/developer/languages/php/sql_server_unix_tutorial.html
http://www.dbforums.com/showthread.php%3F985849-Retrieve-Data-on-Remote-FoxPro-DB-from-Linux-PHP http://www.dbforums.com/showthread.php?985849-Retrieve-Data-on-Remote-FoxPro-DB-from-Linux-PHP
http://stackoverflow.com/questions/2328224/how-do-i-retrieve-external-data-from-ms-sql-from-a-wordpr... http://stackoverflow.com/questions/2328224/how-do-i-retrieve-external-data-from-ms-sql-from-a-wordpr...
http://stackoverflow.com/questions/12476557/how-do-i-get-data-from-requested-server-page http://stackoverflow.com/questions/12476557/how-do-i-get-data-from-requested-server-page
http://stackoverflow.com/questions/14208369/retrieve-data-from-mysql-using-php http://stackoverflow.com/questions/14208369/retrieve-data-from-mysql-using-php
I hope they help you get started.
Pedro M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello sir,
Thanks for reply,
now i'm able to send data to MySQL database , only one problem i'm facing is that " i want send dynamic value of sensor for that i'm concatenating two string which is as below "
//Store the query string in buff
sprintf(buff, "curl \"58.62.547.38/conget7.php?\"\n");
delay(5000);
sprintf(sBuff,"id_wasp=%s&frame_number=%s&sensor=%s&value=%d", id_wasp, frame_number, sensor, voltage13t);
delay(3000);
//Concatenate sBuff and buff and store in buff
strcat(buff, sBuff);
but i'm not able to concatenate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
I'm not very familiar with this topic, so, I may be wrong, but wouldn't removing the new line (\n) from the first sprintf would do just that?
Anyhow, I found the definition of GROUP_CONCAT ( https://dev.mysql.com/doc/refman/5.7/en/group-by-functions.html# function_group-concat), I believe this might be of help for this in specific.
Let me know.
Pedro M.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page