Benoit Blanchon
Benoit Blanchon
  • Видео 16
  • Просмотров 233 056
How to deserialize a JSON document with ArduinoJson 7
In this tutorial, we'll learn how to deserialize a JSON document with ArduinoJson 7.
Deserialization is the process of turning a JSON input into objects from which we can extract the values.
This tutorial requires a basic understanding of Arduino programming and a vague knowledge of JSON.
We'll go through the steps to make a program that extracts values from a JSON object and print them.
We'll also cover error handling and the use of the ArduinoJson library.
Whether you're using an Arduino UNO, an ESP8266, or an ESP32, the code shown in this video works on any device.
Let's jump right in and learn how to deserialize a JSON document with ArduinoJson 7.
Text version of this tutorial:
arduinojson.or...
Просмотров: 1 155

Видео

How to upgrade from ArduinoJson 5 to 7
Просмотров 3 тыс.7 месяцев назад
In this video, we'll explore how to upgrade your programs from ArduinoJson 5 to 7. If you're still using the old, clunky API of ArduinoJson 5, it's time to upgrade your programs. The upgrade process could be difficult, especially if you used DynamicJsonBuffer. However, with the release of ArduinoJson 7, the upgrade process became significantly easier. The video is divided into two parts: a theo...
What's new in ArduinoJson 7
Просмотров 3,4 тыс.8 месяцев назад
In this video, you will get an overview of what's new in ArduinoJson 7, which has been redesigned to suit the changing hardware landscape. With the market now dominated by 32-bit microcontrollers, a fixed memory allocation strategy is no longer necessary, and ArduinoJson 7 provides a more elegant and straightforward API. However, the new version is significantly larger than its predecessor, so ...
How to upgrade from ArduinoJson 6 to 7
Просмотров 8168 месяцев назад
In this video, we learn about how to upgrade the code written for ArduinoJson 6 to use the new version 7. ArduinoJson 7 comes with a straightforward API and no breaking changes, so the code you wrote for version 6 should still compile with no errors. However, it will produce many warnings if the code is still tied to the deprecated API. This video is composed of two parts: the first details the...
Django+HTMX: messages framework with OOB swap
Просмотров 2,1 тыс.Год назад
We'll see an alternative (and probably better) way to integrate the Django messages framework with HTMX. In the previous video, I showed you how to do that with the HX-Trigger header and some javascript code. This time, I'll use out-of-band swaps to inject the toasts into the DOM. You can find a condensed version of this video on my blog: blog.benoitblanchon.fr/django-htmx-messages-framework-oo...
Django+HTMX: integration with the messages framework
Просмотров 3,3 тыс.Год назад
Use Django's messages framework transparently with HTMX. Every message generated in the Django backend will be rendered as a Bootstrap toast. Full code: github.com/bblanchon/django-htmx-messages-framework Blog article: blog.benoitblanchon.fr/django-htmx-messages-framework/ 00:00 - Introduction 00:34 - Tour of the original project 04:06 - Add HTMX 07:31 - Emit the "messages" event 10:01 - Listen...
The ArduinoJson Assistant
Просмотров 4,4 тыс.2 года назад
A complete tour of the ArduinoJson Assistant. The ArduinoJson Assistant is an online tool that helps you work with the ArduinoJson library. The ArduinoJson Assistant on arduinojson.org: arduinojson.org/v6/assistant/ The source code on GitHub: github.com/bblanchon/ArduinoJsonAssistant Table of Contents: 00:00 - Introduction 01:42 - Step 1 04:18 - Step 2 06:26 - Step 3 14:16 - Step 4
Toasts with Django+HTMX
Просмотров 5 тыс.2 года назад
This video is a follow-up to my previous video, which showed how to implement modal forms with Django and HTMX. In this video, I'll show how to notify the user by displaying a toast when an operation completes. The following blog post contains a condensed version of this video: blog.benoitblanchon.fr/django-htmx-toasts/ The following GitHub repository contains a complete project demonstrating t...
Modal forms with Django+HTMX
Просмотров 34 тыс.2 года назад
This video shows how to use HTMX to show Django forms in modal dialog boxes. The solution presented here requires very few JavaScript lines, renders form errors nicely, and refreshes the main page on success. The following blog post contains a condensed version of this video: blog.benoitblanchon.fr/django-htmx-modal-form/ The following GitHub repository contains a complete project demonstrating...
Serialization and JSON on Arduino
Просмотров 14 тыс.4 года назад
An introduction to serialization and JSON for Arduino users. This video contains the presentation I did for the Maker Mind Meld Summit in December 2019. Of course, this version cannot be as good as the original because Peter is missing. However, it's still worth watching because it teaches how to implement serialization from scratch (i.e., without any library), and it covers a lot of topics: bi...
How to upgrade from ArduinoJson 5 to 6
Просмотров 60 тыс.5 лет назад
In this video, we'll see how to upgrade code written for ArduinoJson version 5. We'll start from a program written for version 5 and upgrade it step by step. For a complete guide, see arduinojson.org/v6/upgrade/ As usual, the comments are disabled; if you need assistance, please open an issue on GitHub.
How to deserialize a JSON document with ArduinoJson 6
Просмотров 45 тыс.5 лет назад
A tutorial to learn how to parse JSON on Arduino. In this video, we'll learn how to deserialize a JSON document with ArduinoJson version 6. We'll start from an empty file and recreate the example step by step. To follow this tutorial, you need to know the basics of Arduino programming. If you never wrote an Arduino program before, this is not the tutorial for you, because we focus exclusively o...
How to debug an Arduino program with the "tracing" technique
Просмотров 32 тыс.6 лет назад
Have you ever been faced with an Arduino board that crashes for no apparent reason? Have you ever decode an ESP8266 (ESP32, etc.) exception stack trace and ended with more questions than answers? If so, let me talk to you about a bulletproof technique: the good-old "tracing" technique. In this video, I show you how you can debug virtually any Arduino program by using only the serial port. That'...
What's new in ArduinoJson 6.0
Просмотров 4,3 тыс.6 лет назад
ArduinoJson 6.0.0-beta has just been released, it brings many new features, including the long-awaited support for MessagePack. This release is the first of a new major revision of the library. It adds new features, like: - MessagePack serialization and deserialization, - Error code to tell why deserialization failed, - Support for non zero terminated input. Unfortunately, it requires changing ...
How to deserialize a JSON object with ArduinoJson 5
Просмотров 17 тыс.6 лет назад
A tutorial that explains how to parse a simple JSON object with the library ArduinoJson.
How to use the ArduinoJson Assistant
Просмотров 2,3 тыс.6 лет назад
How to use the ArduinoJson Assistant

Комментарии

  • @edup2306
    @edup2306 Месяц назад

    Thank you! That's exactly what I needed.

  • @ericmuijs1938
    @ericmuijs1938 Месяц назад

    Great video Benoit, super helpful

  • @Flechashe
    @Flechashe 3 месяца назад

    This is exactly what I was looking for, thank you so much. It gets a bit complex so thank you for explaining it in a simple and detailed manner. Great content.

  • @s_houdini_
    @s_houdini_ 3 месяца назад

    Thank you, the tutorial is very nice.

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

    thank you

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

    It would be amazing to see examples of multiple modals stacked. Natively bootstrap doesn't support it but I've seen people doing very small tweaks to make it happen. This way we could add intermediary fields and populate the previous modal with the just added record creating the only (IMO) usable experience for forms. But struggling to make this. Thanks a lot for this video anyway.

  • @yc9794
    @yc9794 5 месяцев назад

    merci frero

  • @moenchkoerper
    @moenchkoerper 5 месяцев назад

    thumps up for this video and your lib. Very well done

  • @russf
    @russf 5 месяцев назад

    Excellent! Thanks Benoit. I love your style. You are very confident and you go right to the issue. I love the way you left your little mysteries in the video, and took time to solve them. Thanks again!

  • @zyghom
    @zyghom 5 месяцев назад

    man, your library is just AMAZING and more than that: your tutorials are PERFECT! We need more of them! ;-) your book as well thanks

  • @angeatgr
    @angeatgr 6 месяцев назад

    Merci Benoit !

  • @officialkhusus48
    @officialkhusus48 6 месяцев назад

    Hello sir, Please your add post description htmx ckeditor

  • @ADPenrose
    @ADPenrose 6 месяцев назад

    What a great video! I actually implemented modals using django + htmx + tailwindcss this week and I'm surprised that my approach was really close to this one haha! Also, thanks for the heads up on how to listen for events. I kid you not I was just thinking about it this afternoon haha. Merci beacoup!

  • @user-tz2gx7ow7p
    @user-tz2gx7ow7p 6 месяцев назад

    4:44 🐎 🤔.... 👍

  • @user-tz2gx7ow7p
    @user-tz2gx7ow7p 6 месяцев назад

    5 👍

  • @user-tz2gx7ow7p
    @user-tz2gx7ow7p 6 месяцев назад

    23:32 ⅞👍

  • @vfb6265
    @vfb6265 7 месяцев назад

    Merci !

  • @mostafaei2002
    @mostafaei2002 7 месяцев назад

    Aamazing video, keep up the good work.

  • @peterholzer98
    @peterholzer98 7 месяцев назад

    Awesome. I have used this method in several projects now. Benoit, could you do the same with the HTML <dialog> tag as well? I need bigger dialog form than bootstraps Modal. Or is theere any other way?

    • @BenoitBlanchon
      @BenoitBlanchon 7 месяцев назад

      You can use the same technique with a <dialog>, you just need to call dialog.showModal() and dialog.close() in the event handlers.

  • @WakaWakaManDan
    @WakaWakaManDan 7 месяцев назад

    I just use x-on::load="new bootstrap.Toast(this).show()" on '.toast' elements instead of 'htmx.onLoad(() => {...'

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

    Thumbs Up, New Subscriber. Excellent discussion!

  • @mymawazo1449
    @mymawazo1449 7 месяцев назад

    my code is similar to yours but I get multiple toasts shown on the page about eight toasts every time. I do have mulitple htmx requests but I only need one message to appear. Any suggestions?

  • @pau1phi11ips
    @pau1phi11ips 7 месяцев назад

    Thanks a lot. I actually needed it for PHP but it's close enough to understand how it works 😁👍

  • @master4755
    @master4755 9 месяцев назад

    can something like this be done without javascript

  • @AlexeyDzuba
    @AlexeyDzuba 9 месяцев назад

    Hi bro! Want to say thank you for your article based on this video. Artice is preffered for me and that awesome!

  • @AdamMalesevic
    @AdamMalesevic 9 месяцев назад

    This tutorial is awesome! I've been looking for something like this so I could catch up with HTMX in Django. This is the perfect approach as many of us Django developers are looking for a way to integrate HTMX in our existing Django code. This could be easily renamed as a Django + HTMX tutorial as it would help people find appropriate content for starting with HTMX (in combination with Django) Thanks!

  • @marvelousncube
    @marvelousncube 10 месяцев назад

    Thanks alot,

  • @javierrusso9576
    @javierrusso9576 11 месяцев назад

    generous genius

  • @basilhaffar3129
    @basilhaffar3129 11 месяцев назад

    when using htmx to load "movie list" instead of "{% include ...etc%}" the size is increase too much, you can see the difference if the database have 1000 records for example.

  • @islamimankhodzhaev543
    @islamimankhodzhaev543 Год назад

    Thank you, Master!

  • @wiki-infodevelopment3369
    @wiki-infodevelopment3369 Год назад

    very good and useful method, but if you have a file to load it will not be a works. normal form use "multipart/form-data" to load files and the HTMX don't support it?

    • @BenoitBlanchon
      @BenoitBlanchon Год назад

      You can upload files with this technique. See: github.com/bblanchon/django-htmx-modal-form/commit/f7b86fec9e47937d71d73ac28ea2b13953b9f8db

  • @serychristianrenaud
    @serychristianrenaud Год назад

    Thank

  • @user-ug1su3kf8t
    @user-ug1su3kf8t Год назад

    I'm Ngoc, from Vietnam. I thank you sir. You are really great tutorials Great, very helpful. How to upload files, image file on modal- HTMX. ???? Thank you

    • @BenoitBlanchon
      @BenoitBlanchon Год назад

      I didn't try but it should work as a regular Django view. As usual, don't forget to add enctype="multipart/form-data" to the form. Please refer to the official documentation for more information: docs.djangoproject.com/en/4.2/topics/http/file-uploads/

  • @harunayakubu3702
    @harunayakubu3702 Год назад

    Thank you for great contents. My question. I want to start DRF. And I have seen mostly that Frontend Framework like React and Vue is used with DRF. Can HTMX be used instead? Thank you.

  • @fullofmysteries
    @fullofmysteries Год назад

    Every time a new modal is opened the background goes darker and darker. Is there a way to have the same background, even after opening and closing multiple modals?

    • @BenoitBlanchon
      @BenoitBlanchon Год назад

      The sample code doesn't have this problem: github.com/bblanchon/django-htmx-modal-form Ensure you're swapping the "modal" and not the "dialog".

  • @isaacsamuel1689
    @isaacsamuel1689 Год назад

    Benoit!, thank you very much for this great video. I have been watching it carefully for some days now. But I have a challenge. If there is an error on a popup page, where user_form.is_valid() is not valid and you return HttpResponse(status=204), how do you show the error message back to the user. If I return redirect() to a template the error messages show. Kindly help redirect me to a video that shows how to do this. Thanks.

    • @BenoitBlanchon
      @BenoitBlanchon Год назад

      If the form is invalid, you must render the page as usual: github.com/bblanchon/django-htmx-modal-form/blob/0c5246dc24c719dbdc07e511b807ef583eb33f68/movie_collection/views.py#L25

  • @reelsergealain
    @reelsergealain Год назад

    You make really great tutorials so I don't understand why you stopped making videos but I want you to do a blogging theme with HTMX if possible

  • @Stabby666
    @Stabby666 Год назад

    I've been looking for videos about how to revert from version 6 to version 5 in Arduino. The lack of iterators (so you now have to search the entire document for each key, one at a time), and having the code now half in C and half C++ makes it generally uglier and slower to use than the older version.

    • @BenoitBlanchon
      @BenoitBlanchon Год назад

      ArduinoJson 6 supports iterators, just as version 5 did. What do you mean by "C and half C++"? When you say "slower", do you have any benchmark?

  • @delsananthony.official
    @delsananthony.official Год назад

    Django and htmx is match made in heaven. Since I find django being too dependent to the anchor tag for triggering transactions.

  • @roland5469
    @roland5469 Год назад

    Thank you so much for your excellent tools and the presentation, they helped us really so much.

  • @Wonganm
    @Wonganm Год назад

    Very Nice tutorial. Highly appreciated. Can the same be done using crispy forms

    • @BenoitBlanchon
      @BenoitBlanchon Год назад

      I don't see any reason why this would not work with Crispy Forms.

  • @vivaldi-qo7xj
    @vivaldi-qo7xj Год назад

    It has been informative and useful. On Django and HTMX. Could you please do more examples especially on OOB swap.

  • @luisloyola3591
    @luisloyola3591 Год назад

    nice to have a new video. I hope you can and your time will allow you to upload more content, thanks for your time.

  • @frameff9073
    @frameff9073 Год назад

    Thank you

  • @andywang1352
    @andywang1352 Год назад

    Great video, expect more htmx videos.

  • @rajeshrathod3113
    @rajeshrathod3113 Год назад

    Thank you, love to see more in this series

  • @nanayaw7159
    @nanayaw7159 Год назад

    Awesome

  • @kylebradshaw5418
    @kylebradshaw5418 Год назад

    Excellent demo and walkthrough - I definitely should be using htmx in my django project. I appreciate the effort

  • @peterblake3916
    @peterblake3916 Год назад

    You videos are an amazing resource, hope to see more from you!

  • @sumiyaaltangerel8280
    @sumiyaaltangerel8280 Год назад

    Dear im triying to fix this issue in whole week. Can you solve this on bootstrap v5.2 bootstrap.bundle.min.js:6 Uncaught TypeError: Cannot read properties of undefined (reading 'backdrop') at Ni._initializeBackDrop (bootstrap.bundle.min.js:6:52003) at new Ni (bootstrap.bundle.min.js:6:50880) at dialog.js:2:17 at dialog.js:16:3