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
- getting undefined while iterating json
- How can I serialize a numpy array while preserving matrix dimensions?
- What is best way to check if any of the property of object is null or empty?
- How to query JSON data according to JSON array's size with Spark SQL?
- Extracting data from json_decode with lat and lng geolocation
- Convert JSON.gz to JSON in node js
- How do I get the type to convert to when deserializing from Jackson
- Escape dot in jquery validate plugin
- Are allOf and properties keywords interchangeable?
- Sort continents by amount of countries
- Is there a data format lighter than json?
- Object of class CS_REST_Wrapper_Result could not be converted to string in CAMPAIGN MONITOR
- How to read JSON data from a web server running PHP and MySQL?
- Parse Nsmutabledictionary and extract value
- Handle empty JSON values in Java
Related Questions in MONGODB
- Meteor MapReduce Package Error: A method named is already defined
- Token based authorization in nodejs/ExpressJs and Angular(Single Page Application)
- Big data with spatial queries/indexing
- How to recover from losing all your /data/db
- What are the benefits of using the fields option when querying in Meteor
- Node JS Async Response
- mongoose get property from nested schema after `group`
- What to use for subdocuments ID's in MongoDB?
- ORM Code First versa Database First in Production
- How to profile a Yii2 based API?
- get length of embedded document in mongoDB with jade
- Architecture: Multiple Mongo databases+connections vs multiple collections with Express
- Why are numbers being inserted into MongoDB incorrectly?
- hibernate ogm mongo db, how to get count of collection?
- C++ Mongodb driver, not working
Related Questions in ARDUINO
- arduino find text in webpage
- Arduino serial works fine with Debian but hangs with Raspbian
- Need help getting value from html slider on yun to arduino value
- Arduino RPM Detection
- How do you do forward declarations in arduino code?
- ESP8266 and Arduino Interfacing
- Async HTTP Request and Arduino
- Arduino NearBus NearbusEther_v16.h: No such file or directory
- Arduino data type confusion. Have string, need const char?
- Connecting a USB serial device to the Arduino directly
- C++ how do i show ledstatus as on or off in the Client?
- Arduino RFID (Wiegand) Continuous reading
- Android Phone not sending data over TCP/ip
- nRF24 - data received but not whole message
- Trouble interfacing/communicating between Arduino Block and Intel Edison
Related Questions in ESP8266
- ESP8266 and Arduino Interfacing
- Wifi ESP8266 between to micros
- NodeMCU ESP8266 GET request response
- esp8266 programme memory corruption
- How to POST to a RESTful API on an ESP8266 using authentication?
- ESP8266 multiple pages access using net.createConnection(net.TCP, 0)
- ESP8266 Arduino request content encoding
- Android app to receive data sent by ESP-01 8266
- Express.js/Node.js Responses Before Query Finishes
- Allow access for MQTT on Ubuntu Server running on Azure
- Compile error with ESP8266 SDK in KAA 0.10.0
- warning: espcomm_sync failed error: espcomm_open failed error: espcomm_upload_mem failed
- Esp8266 to LocalServer
- ESP8266 and POST request
- How to post HTTP request with Arduino + ESP8266 AT commands
Related Questions in ARDUINOJSON
- Deserialize String into StaticJsonDocument
- Read Serial Data from Python to Arduino with ArduinoJSON
- Json parsing not working with JsonObject using ArduinoJson library
- How to save JSON parsing values to an array in ArduinoJson
- "deserializeJson() failed: NoMemory" Error with my NodeMcu-Mx with ESP8266
- ArduinoJson 6.15.2: JsonObject does not name a type
- Saving Custum Paramter with WifiManager & Arduinojson 6
- Get a github folder it's contents as a json file
- Can't use ArduinoJSON data in an ArduinnoSTL map
- ArduinoJSON serialization returns an empty string when serializing to char*
- In ArduinoJson how can one check if an error occured when creating a JSON document?
- Make ArduinoJSON Array globally available
- How to check if a value is literally null
- AndroidJSON parsing nested GET-Response
- How to copy all members of a json object to a 2d array given that the object name matches (ArduinoJson)
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 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.