• Support
  • Extracting Data from airQualityWing

I’m using airqualitywingexample with particle Argon.
In the example, datas are sent to particle cloud using
Particle.publish("blob", AirQual.toString(), PRIVATE, WITH_ACK);

From my understanding, the datas are published in JSON format:
example of the datas:
{
“pm25”: 12,
“pm10”: 13,
“temperature”: 31.29,
“humidity”: 70,
“tvoc”: 15,
“c02”: 501
}

But how do I extract each individual data and publish it to particle cloud?

    Hey fariqghani

    When you issue Particle.publish you are publishing to the cloud. You’ll have to monitor for the event name (“blob” in this case) using a Webhook. Once setup you can map the values to something you can use elsewhere. You can check out this example on how I did it for Adafruit IO.

    Hi Jared,
    Thanks for replying.
    I need to print the individual data to Serial.

      Terms and Conditions | Privacy Policy