Are you the publisher? Claim or contact us about this channel


Embed this content in your HTML

Search

Report adult content:

click to rate:

Account: (login)

More Channels


Showcase


Channel Catalog


Channel Description:

Latest posts
    0 0

    I am implementing MQTT on WildFire V4 using ESP8266_AT_Client.h library. When I receive packets more than 500 bytes program disconnects and try again to connect to the WiFI and re attempting MQTT connection with broker and I am not able to see any response on Serial Monitor. I have set esp.setInputbuffer to 1024 bytes and set MQTT_MAX_PACKET_SIZE to 1024. I have tried different baud rates but nothing on Serial monitor. I am seeing the full packet on Wireshark but I am not able to see on the serial monitor. Can anyone help me with this? Hope to hear from you soon.


    0 0
  • 11/08/18--14:59: AQ Egg No Output
  • Hi, one of my eggs recently stopped outputting any data. It does not attempt to connect to a wireless network, and I can’t get anything to come up on the serial monitor. It is receiving power - the fan is running and LED screen is illuminated, but does not appear to be receiving instructions from the board.

    The LED screen is illuminated, the top row is all solid blocks, nothing on the bottom row. Power cycling does not appear to correct the issue.

    Are there any troubleshooting steps you would recommend?

    Much appreciated.


    0 0
  • 12/06/18--07:43: AQ Egg No Output
  • I responded to this by email, suggested attempting to reprogram the Egg using Arduino, awaiting to hear back if that worked.


    0 0
  • 12/19/18--00:48: Sharing Data Feed?
  • Could you guide me how to embed that URL in an i-frame on my website. thanks you.


    0 0
  • 12/19/18--05:41: Sharing Data Feed?
  • @NT1 Hi, you should be able to insert it with something like the following…
    (substitute your Egg’s URL, which you can obtain by visiting your Egg’s page in the web portal, and copying the URL from the browser address bar). You may need to set the iFrame width and height in your css file, or directly in the iFrame tag, in order to get a correctly sized view.

    <iframe src="https://airqualityegg.wickeddevice.com/portal/#egg00802ebb0f180121"></iframe>

    Thanks!
    Joe


    0 0

    Hello @vicatcu,
    I have a error, can you help me please. This is my code:

    $jwt= getToken();
    $url = ‘https://airqualityegg.wickeddevice.com/api/v2/most-recent/messages/device/my serial here’; // *** most recent mqtt upload
    $result=getData($jwt, $url);

    if($result== false){
    echo 'Curl error: ’ . curl_error($ch);
    }else{
    echo $result;
    }

    //echo ($authorization = "Authorization: Bearer ".$jwt); //Prepare Autorisation Token

    function getToken(){
    $data = array(“name” => “my username”, “password” => “my password”);
    $data_string = json_encode($data);
    $ch = curl_init(‘https://airqualityegg.wickeddevice.com/api/v2/login’);
    curl_setopt($ch, CURLOPT_TIMEOUT, 10); //timeout after 10 seconds
    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, “POST”);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    ‘Content-Type: application/json’,
    'Content-Length: ’ . strlen($data_string))
    );
    $result = curl_exec($ch);
    if($result== false){
    $jwt = 'Curl error: ’ . curl_error($ch);
    }else{
    $data = json_decode($result, true); //Convert array in Json to Array in PHP
    $jwt = $data[‘jwt’]; //print jwt value;
    }
    curl_close($ch);
    return $jwt;
    }

    function getData($token, $ur) {
    $numberOfSeconds = “10”;
    $ch = curl_init();
    $authorization = "Authorization: Bearer ".$token; //Prepare Autorisation Token
    curl_setopt($ch, CURLOPT_URL, $ur);
    curl_setopt($ch, CURLOPT_USERAGENT, ‘Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0’);
    curl_setopt($ch, CURLOPT_HTTPHEADER, array(‘Content-Type: application/json’, $authorization )); //Inject Token into Header
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $numberOfSeconds); // connection timeout
    curl_setopt($ch, CURLOPT_TIMEOUT, $numberOfSeconds); //data timeout
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //return the data transfer
    curl_setopt($ch, CURLOPT_HEADER, 0); //No headers returned with result
    $result = curl_exec($ch);
    curl_close($ch);
    return $result;
    }

    When I run my code, function getToken() is very well. But function getData() have a error ({“error”:“my usernam is not authorized for mqtt path /most-recent/messages/device/my serial here”} )


    0 0

    @ngsangmt You have to have claimed the Egg you are requesting data for with the account whose credentials you are using to make the request, or you have to have to have a subscription account that grants you authorization to download data from any Egg. Please email support at airqualityegg dot com if you believe you fall into one of these categories and are receiving the unauthorized message in error, or if you have more specific questions.


    0 0

    Just following up here to close the loop. @ngsangmt I fixed a small bug on the server that was impacting you, and it should be all set now. Thanks again for bringing it to my attention.


    0 0

    Thank @vicatcu, my code is running very well.


    0 0

    When trying to get the wifi turner onner to work, it cant be recognized by my computer.


    0 0

    Hi! On a Mac, I believe you need to install a USB driver as per https://github.com/nodemcu/nodemcu-devkit/wiki/Getting-Started-on-OSX


    0 0

    Im using a windows computer for it.


    0 0

    I bought this at MicroCenter about 2 years ago. It has been on the shelf since. I want to play around with it but have no documentation at all. Where can i get the sample sketch that is supposed to be preloaded as well as instructions on how to set it up on wifi?


    0 0

    Everything you could ever hope for is available from wildfire.wickeddevice.com :-). Let us know if you have any more specific questions.


    0 0

    I spent upwards of an hour on your website this morning, and I can’t find any of the things that I’m looking for. There’s tons of information about the version for, but I can’t find the original Preloaded sketch, other than on github, I also can’t find any information on how to set this up for Wi-Fi.


    0 0

    So the preloaded demo is https://github.com/WickedDevice/WildFireV4Demo (what’s wrong with the sketch being on GitHub?) but it’s of limited utility in 2019 because data.sparkfun.com has gone belly up. You could host your own phant.io server I guess.

    If you install the Arduino Boards Manager package into Arduino, you should get a bunch of libraries that come along for the ride in the Examples menu. The ones you’re going to want to look at are in the ESP8266_AT_Client library which is what is used to do most of the common networking things you’ll want to do. Just follow the instructions under Arduino IDE Setup on wildfire.wickeddevice.com.


    0 0

    @Redambassador6 did you get it figured out? On Windows, you still might need to install drivers for CP2102 if for some reason Windows doesn’t automatically install them.