Community
cancel
Showing results for 
Search instead for 
Did you mean: 
sk23
New Contributor II
1,673 Views

sending and receive data over wifi

Hi ,

I want to send and receive data over wifi.

I want send the data from our cloud and acknowledge to cloud.

I want to configure sensor on the fly on Intel Edison board.

Please do need full.

5 Replies
idata
Community Manager
62 Views

Hello IoT_srinivas,

 

 

If you would like to send data over Wi-Fi, I believe your best option would be to use a protocol based on TCP, like netcat, telnet, or Expect.

 

When you mention that you would like to send the data from our cloud and acknowledge to cloud, what do you mean? Do you already have a server that handles the data you send?

 

What exactly do you want to configure on the sensor? What changes are you planning to do on the go?

 

 

Peter.
idata
Community Manager
62 Views

Hello IoT_srinivas,

 

 

Is there any updates? What have you tried so far?

 

 

Peter.
sk23
New Contributor II
62 Views

Hi Peter,

We can able to configure the Sensor value (Threshold values) from cloud .Sensor are connected to Device(Edsion).

Device can only send the values base on sensor configuration at server.

Example : temperature sensor value cab be configured at cloud. I want send data for every 10 minutes or when temperature change in 2 degree.

I ma using MQTT protocol for reeving sensor data on device but we are unable to send acknowledgement to device.

void setup()

{

if ( SECURE_MODE == 0 )

Serial.println("No security");

mqttClient.begin("xx.xx.xx.xx", 1883, OPEN, NULL, NULL, NULL);

//subscribe to all topics published under edison

mqttClient.subscribe("edison/# ", mqttCallback);

mqttClient.publish("edison/bootMsg", "Booted");

}

void loop()

{

mqttClient.loop();

//put your main code here, to run repeatedly:

 

sprintf(msgString, "%.2f", readTemperature()); // orginal

mqttClient.publish("Temperature", msgString); // orginal

}

sk23
New Contributor II
62 Views

Hi Peter ,

Please check reference link.

https://software.intel.com/en-us/blogs/2015/04/06/using-edison-securely-connect-iot-sensor-to-the-in... IoT - Using Edison: Securely connect IoT Sensor to the Internet with MQTT | Intel® Software

idata
Community Manager
62 Views

Hi Srinivas,

 

 

Did you make sure to build and install Mosquitto correctly according to this guide? https://software.intel.com/en-us/blogs/2015/02/20/building-and-running-mosquitto-mqtt-on-intel-ediso... https://software.intel.com/en-us/blogs/2015/02/20/building-and-running-mosquitto-mqtt-on-intel-ediso.... Take a look too at the comments, at the end of the guide, you might also use some of those recommendations.

 

Also, did you make sure to set the class for the Client? Could you please share your configuration of the MQTTClient Class? I would like to see if there's something wrong with the configuration.

 

 

Regards,

 

Pablo
Reply