What I want to do, is to communicate with an external server using a WebService, because this is what I normally do on regular C# project with the .NET envrionnement. My code is even working on the NETMF environnement on my PC.
But as soon as I put the code on the Cerbuino bee, I have an error saying that the Host is non available. The web service that I am using for testing is : http://www.webservicex.net/globalweather.asmx it returns a list of cities available for weather forecast for a certain country (Ex : Canada). The information is in XML format.
But my real project is to send data to an external server after the HCSR04 sensor is detecting something. I would like to send the Mac Address of my Cerbuino bee and a status On/Off.
The server must also also be able to send a command to the Cerbuino bee to light up a Led on a certain situation.
I don’t know if this can be done with or without a Webservice. I am lost actually, and I would like to find anyhing that will help me communicate with external server.
With my modification of the RN171 driver I and a modification of the uCloudy library of ppatierno I got the azure example of duke nukem https://www.ghielectronics.com/community/codeshare/entry/937
partly working with the RN171… only few iterations because of a memory leak that I didn’t find yet (actually did not continue to work on the code).
Thank you Roschmi for this answer. So I understand that it is not easy to use electronic modules to send data to external server.I will try the NETMF toolbox and let you know if I succeed. Thank you again. Microu.
Good news ! I have been able to use toolbox GSX to use Webservice thru the wifly RN-XV on the Cerbuino bee. Everything works fine.
My problem now is that I use the Cerbuino bee module has a client module and I am not able to send back a request from the IIS server to the Cerbuino bee to execute a certain task when I want it.
I now have to run a webservice every minute to update the statuts of the Cerbuino bee and this would make a lot of traffic, because a want to have a lot of modules working at the same time in my project.
I would like to know if the Cerbuino bee could be used at the same time as a Client and Server (using your Roschmi RN-171 driver) ? So I would be able to have access to any module on both sides.
[quote=“microu”]
Good news ! I have been able to use toolbox GSX to use Webservice thru the wifly RN-XV on the Cerbuino bee. Everything works fine. [/quote]
Thank you for your feedback. Would be nice if you could show us an example as a CodeShare project.
Very interesting. Can you tell a little bit more about you project? Is it right that you want to have multiple Cerbuino Bee Webclients at different locations? If it’s not a business secret, what are these webclients intended to do?
Suggestion: If you have control of the webservice yourself, you could use one data entry as a command for the client (if for your application it is sufficient to react once in a minute). So you would not need the webserver function on the Cerbuino Bee.
I did not write the driver myself but took the GHI RN171 module driver and made some modifications. I can not definitely say which functions of the driver were initially intended. I would think that with additional driver software it could work as http Client and http server in one application as far as it can be ensured that no request is received for the Cerbuino Bee as server while the Cerbuino Bee client performs a request itself.
As soon as I have finished another project I want to come back working on the RN171 driver.