# Sending data to Firestore using MQTT

**URL:** <https://discourse.nodered.org/t/sending-data-to-firestore-using-mqtt/13678>\
**Category:** General\
**Created:** [25 July 2019 07:35 UTC](https://discourse.nodered.org/t/sending-data-to-firestore-using-mqtt/13678 "2019-07-25T07:35:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mustaqim](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@Mustaqim](https://discourse.nodered.org/u/Mustaqim)\
**Post date:** [25 July 2019 07:35 UTC](https://discourse.nodered.org/t/sending-data-to-firestore-using-mqtt/13678/1 "2019-07-25T07:35:12Z")

</div>

Hi, I am trying to send data from Ubidots using MQTT to Firestore. I manage to send the data but it doesn't the way I wanted because I want to send it to specify field and I want the data update in real time. Any ideas? I'm new to red node.

I read it the document about Firestore write but I didn't get it that some actions need special handling: [https://flows.nodered.org/node/node-red-contrib-cloud-firestore](https://flows.nodered.org/node/node-red-contrib-cloud-firestore)

Here is my flow  
 ![node%20red%20flow](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/5/5c03b7e8291254e2349336ef726a2c60f7a2c26b.png)

Firestore db. It will store value either 0 or 1

 ![firestore](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/5/51ed33912fc3ff1018150a8c02f6de0b658eb3b9.png)

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [25 July 2019 07:54 UTC](https://discourse.nodered.org/t/sending-data-to-firestore-using-mqtt/13678/2 "2019-07-25T07:54:00Z")

</div>

Add you flow here please read the following post [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506) before posting. Also include an example of teh data you are receiving via MQTT and what you want to store

---

<div class="post-metadata">

**Author:** ![Mustaqim](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@Mustaqim](https://discourse.nodered.org/u/Mustaqim)\
**Post date:** [25 July 2019 08:14 UTC](https://discourse.nodered.org/t/sending-data-to-firestore-using-mqtt/13678/3 "2019-07-25T08:14:41Z")

</div>

Oh, sorry. I will update my post

---

<div class="post-metadata">

**Author:** ![marc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marc/32/12208_2.png) [@marc](https://discourse.nodered.org/u/marc)\
**Post date:** [16 September 2019 17:34 UTC](https://discourse.nodered.org/t/sending-data-to-firestore-using-mqtt/13678/4 "2019-09-16T17:34:31Z")

</div>

Hi mustaqim,  
why did you not opt ​​for the real-time database of firebase? I think this is easier to approach. By the way, which settings did you use with the firestore write node?
