I wanted to update/push data directly over to the MongoDB using an ESP8266 Wi-Fi module in Arduino. I have seen some solutions referring to use MQTT / their own Node-Red Server to connect with MongoDB and then send connect the data. But I want to do it directly.
How can I Send data directly over to MongoDB without any intermediary?
2.7k Views Asked by Prashant Mishra At
2
There are 2 best solutions below
1
Marcel Stör
On
There is no Arduino driver for MongoDB. This leaves you with these choices:
- implement it yourself
- adapt their C or C++ drivers
- use the NodeMCU firmware for ESP8266 and see if the Lua driver for MongoDB works on top of it
- use MicroPython on the ESP8266 and see if MongoDB's Python driver works on top of it
Related Questions in JSON
- Handling both JSON and form values in POST request body with unknown values in Golang
- JSON Body is Not Passing Certain Strings
- Custom rewriter for json
- TypeScript: Type checking while parsing an arbitrary JSON that is typed/
- I dont understand what to do with: System.Text.Json.JsonException: 'The JSON value could not be converted to System.Collections.Generic.IEnumerable`1
- How to perform CRUD operations on a static JSON array in Angular? (without API)
- Dynamic Nested Multi-Dimensional Arrays in Rust
- Creating bar chart in FastAPI
- How to encode ttsJson data?
- Trying to get the id of the last element in my json file through an api
- How to give index id to my uploaded json file in FastAPI?
- JQ JSON - Values to Array
- Spring boot JSON parse error: Unexpected character error
- convert csv file with json data inside to a column, rows table in 2nd csv file
- Sigma.JS custom rendering
Related Questions in MONGODB
- MongoDb not connecting C#
- How do I link two models in mongoose?
- MERN Stack App - User Avatar Upload - 500 Error After Deployment on Render
- On the server side, it returns undefined but on the client side, logs the values no problem
- Laravel: Using belongsToMany relationship with MongoDB
- What are some MERN projects that will grow me from junior dev to senior
- Save Interface in DB golang
- findOneAndUpdate not updating value in mongodb?
- Get Type Error when using .countDocuments with mongoDB
- Getting a Large Error Output When Calling MongoDB/Mongoose Functions Without an Error Message
- How to enter data in mongodb array at specific position such that if there is only 2 data in array and I want to insert at 5, then rest data is null
- using Python to insert_one to my mongo_db, How do I pass key values into a function?
- SSL Certificate Verification Error When Scraping Website and Inserting Data into MongoDB
- connect ECONNREFUSED 43.205.72.30:27017 while connecting to Atlas
- Vite is probably changing my import path. What should I do?
Related Questions in ARDUINO
- How to fix python serial monitor parsing error?
- How can I break bricks?
- Soft WDT reset on Wemos D1 Mini
- Arduino TFT module 240x320 OLED not working
- Async Web Server RP2040 returning ERR_CONNECTION_REFUSED?
- ESP32 Consequtive Interrupt WDT Timeout Exception
- Adafruit BNO08x Lib Not working with PicoRP2040 - PlatformIO
- SPI - R/W to ST95P08 EEPROM
- arduino disambungkan ke konputer nyala dan mati lagi
- How to correctly read POST REQUEST body on ESP32?
- How do I publish sensor data to EMQX broker on Ubuntu from a remote Arduino (no WiFi) interfaced with SIM800L?
- Portenta H7 Baremetal Development and a Little Guidance on Embedded System Learning Roadmap
- Wifi disconnects and connects again and again while using esp8266, max30100 and oled display
- Arduino-cli commands are not found in vscode using WSL, why is this occuring?
- Implementing Image Processing for Dimension Measurement in Arduino-based Packaging System
Related Questions in ESP8266
- Wifi disconnects and connects again and again while using esp8266, max30100 and oled display
- I can't find a conenction diagarm for the OV7670 camera to the ESP8266
- ESP8266 - Unable to connect to MQTT Server via SSL (mutual authentication)
- esp-01 wifi module STM32F4 discovery firebase
- How to get my data to actually show up in the DynamoDB?
- Is there a way to upload/edit files from Android to LittleFS
- ESP8266 StreamHttpClient example broken - prints "read timeout" error
- Using FastLED and SharpIR Libraries with Generic ESP8266 Board
- Problems sending websocket message from esp8266 as client
- "Blynk Connection Issue with Arduino and ESP8266 in IoT Project"
- How to receive a float array using esp8266 via I2c
- Communication between Arduino UNO and ESP8266 via TXS0108E
- ESP8226 connected by USB to TTL using USB A to USB Mini B cable to temperature sensor DHT22 error with Arduino IDE - upload (Thingsboard IOT WIFI)
- Can't open serial monitor while pyserial script is working, using nodemcu
- WebSocket connection with a ESP-01S (ESP8266) and arduino
Related Questions in ARDUINOJSON
- Stack smashing protect failure! in ESP32
- Understanding a C version macro (looks like undeclared variable?)
- Read Serial Data from Python to Arduino with ArduinoJSON
- Error compiling for board NodeMCU 1.0 (ESP-12E Module) while using arduinojson
- Deserialize Arduino JSON was too slow
- Arduino JSON deserialization returns wrong value
- Error compiling for board esp32 Dev Module
- Create Json Object with ArduinoJson 6
- Can't use ArduinoJSON data in an ArduinnoSTL map
- Can not declare dependency to bblanchon/ArduinoJson in my library.json (platform io)
- Why is my Arduino MKR NB 1500 stuck after sending or receiving a couple of MQTT messages?
- Get a github folder it's contents as a json file
- How to save JSON parsing values to an array in ArduinoJson
- Getting json keys from an array from an object using ArduinoJson
- Create a lookup table for array of classes in C++/Arduino
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You do not need a "node-red server" to talk to a MongoDB server.
You either need to use a driver (which implements the wire protocol), or if you don't want to use the driver you can implement the wire protocol yourself and speak it directly. If you choose the latter route you can perform some optimizations that drivers don't do, like using a single connection. All of the required information for this is published in https://github.com/mongodb/specifications, though knowing WHAT to do when is non-trivial if you have no MongoDB experience.