Serialization and JSON on Arduino

Поделиться
HTML-код
  • Опубликовано: 14 окт 2024

Комментарии • 39

  • @rickbell5599
    @rickbell5599 4 года назад +9

    Benoit, this is one of the best programming videos I have seen in a while. Clear, concise, and well laid out. It's obvious you spent a lot of time setting this up and working on the presentation. Thanks and Kudos!

    • @BenoitBlanchon
      @BenoitBlanchon  4 года назад +1

      Thanks, Rick. This does require a lot of effort; that's why I published so few videos.

  • @JenkinsVisualProduct
    @JenkinsVisualProduct 3 года назад +1

    Phenomenal presentation!! Just bought the eBook in part because I can't begin to imagine the amount of time you've put into this and it's already been a massive help!

    • @BenoitBlanchon
      @BenoitBlanchon  3 года назад +1

      Thanks, Ed! Indeed, it took me quite a lot of time to prepare this video; that's why I rarely publish a new video even though I have many ideas for them.

  • @nakulchauhan6713
    @nakulchauhan6713 3 года назад

    This is the best way for understanding need of JSON, XML etc

  • @zyghom
    @zyghom 2 года назад

    I don't remember when was the last time I spent 1h continuously watching - thank you for y our effort and presentation!

  • @javierrusso9576
    @javierrusso9576 Год назад +1

    generous genius

  • @nandercarmo4123
    @nandercarmo4123 3 года назад +3

    This video is amazing! Extremelly clear and helpful! Thanks!

  • @rianvankessel1767
    @rianvankessel1767 2 года назад

    Geweldige video en zeer goed uitgelegd. Ben benieuwd naar de volgende.

  • @hiram4578
    @hiram4578 4 года назад +4

    you're a very good teacher. thanks for all you've contributed. :)

    • @BenoitBlanchon
      @BenoitBlanchon  4 года назад

      Thank you very much. I wish I had time to do more videos.

  • @MPElectronique
    @MPElectronique 3 года назад +1

    Merci Benoit pour cette merveilleuse librarie... je lutilise a chaque jour... :)

  • @AtalnteCreationNumerique
    @AtalnteCreationNumerique 2 года назад

    Thanks for your video tutorials and explanations, i love your french accent because i'm also french speaker and so je comprend bien mieux ton anglais que celui d'un natif 😉😉
    @+

  • @KeithHeilner
    @KeithHeilner 8 месяцев назад

    Thumbs Up, New Subscriber. Excellent discussion!

  • @ranjithmkumar
    @ranjithmkumar 4 года назад +2

    I liked the content and how it is delivered. I wish if you can explain it for non-arduino based platforms specifically arm Cortex series.

  • @necro_nemesis
    @necro_nemesis 4 года назад

    Excellent presentation. Very helpful in appreciating Arduinojson's benefits and requirements.

  • @josephtanner248
    @josephtanner248 3 года назад

    Hi Benoît,
    thank you very much for your absolut great json library. It helped me alot.

  • @dangerhamster
    @dangerhamster 3 года назад

    Thanks for everything.

  • @domiart6758
    @domiart6758 2 года назад

    tres bien fait, merci

  • @AmateurInventor
    @AmateurInventor 2 года назад

    hey, really appretiate your contribution at arduino json library that you created. I am having a memory issue on my esp 32, could you please please help me sort that out?

    • @BenoitBlanchon
      @BenoitBlanchon  2 года назад

      Please open an issue on GitHub: github.com/bblanchon/ArduinoJson/issues/new/choose

  • @johnanderson6584
    @johnanderson6584 3 года назад

    Hey! Great video! Question, would you recommend Json as a method of communicating between Android and Arduino (Uart BLE Service) for a table that has 30 rows by 3 columns. plus some general settings properties, about 10. I am wanting to implement some CRC checking of the whole Json string if I do.. is this a rabbit hole? or is the right idea?

    • @BenoitBlanchon
      @BenoitBlanchon  3 года назад

      Hi! I think JSON is inappropriate for tabular information; I would use a binary format instead. If I were you, I'd try to send the JSON settings and the binary table in two different messages. As an analogy, if this was a REST API, I would use a JSON endpoint for the configuration and a BMP image (or any other binary format) endpoint for the matrix (each endpoint would have its own URL).

    • @johnanderson6584
      @johnanderson6584 3 года назад

      @@BenoitBlanchon Understood and Thank you! any tips on sending large Serial strings along with Checksum values with retry if mismatch? been looking for a best practice implementation example.

  • @carlosrodrigos
    @carlosrodrigos 3 года назад

    What a beatifull work. Thanks a lot for share.

  • @b2eingimedali800
    @b2eingimedali800 4 года назад

    Thanks ,Great work - Imed ali fom Tunisia

  • @HakkiOgrt
    @HakkiOgrt 4 месяца назад

    thank you

  • @riemanndiy6693
    @riemanndiy6693 4 года назад

    Dear Benoit can you make a video for a basic I2C arduino to arduino communication? I'm trying to doing this but it gives me back always an invalid input error.

    • @BenoitBlanchon
      @BenoitBlanchon  4 года назад +1

      Hi!
      I never did anything like that, but I take note and I'll see if I can do something.
      Maybe not a video, but at least an article on arduinojson.org.
      BTW, Arduino to Arduino communication can be a good candidate for the binary serialization I present at the beginning of the video.

  • @SA-oj3bo
    @SA-oj3bo 2 года назад

    I would applaude if you made something to work with JSON as simple as in python or JS, this is to complex.

  • @СергейГород_ко
    @СергейГород_ко 8 месяцев назад

    5 👍

  • @任小雨-w4g
    @任小雨-w4g 4 года назад

    嗨,你好,我想购买你的书,可是我没有ebuy账号。我在中国大陆,想通过支付宝给你帮助,如何做呢?

  • @СергейГород_ко
    @СергейГород_ко 8 месяцев назад

    4:44 🐎 🤔.... 👍

  • @СергейГород_ко
    @СергейГород_ко 8 месяцев назад

    23:32 ⅞👍

  • @jelkabisa
    @jelkabisa 3 года назад

    Hi Benoit, if you could help me please it would be great. I want to send data from Arduino mega to a Wemos D1 ESP8266 module with ArduinoJson but for some reasons it is not going through. I connected the TX and RX correctly on both boards and this is my code.
    to send:
    while(Serial.available()){
    // Create the JSON document
    StaticJsonDocument doc;
    //getting data from sensors
    doc["Vin"] = Vin;
    doc["Iin"] = Iin;
    doc["Pin"] = Pin;
    doc["Vout"] = Vout;
    doc["Iout"] = Iout;
    doc["Pout"] = Pout;
    serializeJson(doc, Serial);
    delay(2000);
    }
    receiver:
    StaticJsonDocument doc;
    char data[] = "{\"Vin\":\"17.085\",\"Iin\":\"17.085\",\"Pin\":\"17.085\",\"Vout\":\"17.085\",\"Iout\":\"17.085\",\"Pout\":\"17.085\"}";
    deserializeJson(doc, data);
    if (Serial.available() > 0){
    DeserializationError error = deserializeJson(doc, data);
    if(error){
    Serial.print(F(("deserializeJson() failed with code")));
    Serial.println(error.c_str());
    return;
    }
    //Fetching values
    float Vin = doc["Vin"];
    float Iin = doc["Iin"];
    float Pin = doc["Pin"];
    float Vout = doc["Vout"];
    float Iout = doc["Iout"];
    float Pout = doc["Pout"];

    • @BenoitBlanchon
      @BenoitBlanchon  3 года назад

      Hi Jelka,
      I'm sorry, I don't do technical support via RUclips.
      Please open an issue on GitHub:
      github.com/bblanchon/ArduinoJson/issues/new
      Thank you for your understanding.