# Connecting an ESP8266 an BMP180 to Losant

**URL:** <https://forums.losant.com/t/connecting-an-esp8266-an-bmp180-to-losant/926>\
**Category:** Help\
**Created:** [May 18, 2018, 1:05am UTC](https://forums.losant.com/t/connecting-an-esp8266-an-bmp180-to-losant/926 "2018-05-18T01:05:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_Biliti](https://avatars.discourse-cdn.com/v4/letter/n/45deac/32.png) [@Nick\_Biliti](https://forums.losant.com/u/Nick_Biliti)\
**Post date:** [May 18, 2018, 1:05am UTC](https://forums.losant.com/t/connecting-an-esp8266-an-bmp180-to-losant/926/1 "2018-05-18T01:05:03Z")

</div>

Has anyone been able to connect their BMP180 barometer and ESP8266 to Losant? I’m fairly new into coding and don’t entirely know where to begin with this. Any advice would be much appreciated!

---

<div class="post-metadata">

**Author:** ![Tim\_Hoffman](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@Tim\_Hoffman](https://forums.losant.com/u/Tim_Hoffman)\
**Post date:** [May 18, 2018, 2:58am UTC](https://forums.losant.com/t/connecting-an-esp8266-an-bmp180-to-losant/926/2 "2018-05-18T02:58:41Z")

</div>

I have ESP8266 connected, but I have been using Micropython.

There is a micropython lib for the BMP180. [https://github.com/micropython-IMU/micropython-bmp180/blob/master/bmp180.py](https://github.com/micropython-IMU/micropython-bmp180/blob/master/bmp180.py) - I haven’t used this.

And the umqtt library seems to work ok. I am ususally sending via a local broker to Losant. But it connects direct fine too.

Ifyour not into python have a look at the Arduino tutorial it should be directly applicable to the EPS8266 if your using Ardunino platform. If your planning on using Lua then any of the mqtt tutorials would be a good place to start. Connecting to Losant is really not much different to any other MQTT service.

The main differences between them typically revolve around authentication methods (for instance Googles IOT uses JWT, ) , payload format and how the use of topics is approaced.

---

<div class="post-metadata">

**Author:** ![Nick\_Biliti](https://avatars.discourse-cdn.com/v4/letter/n/45deac/32.png) [@Nick\_Biliti](https://forums.losant.com/u/Nick_Biliti)\
**Post date:** [May 22, 2018, 11:23pm UTC](https://forums.losant.com/t/connecting-an-esp8266-an-bmp180-to-losant/926/4 "2018-05-22T23:23:19Z")

</div>

By any chance could you upload a copy of your version of the code? I’m still unsure on how it was linked with the Losant platform. I may have picked a project a little too complicated for my current knowledge on coding…

---

<div class="post-metadata">

**Author:** ![Steve\_Barker](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@Steve\_Barker](https://forums.losant.com/u/Steve_Barker)\
**Post date:** [May 30, 2018, 6:10am UTC](https://forums.losant.com/t/connecting-an-esp8266-an-bmp180-to-losant/926/5 "2018-05-30T06:10:04Z")

</div>

Hi Nick,  
Are you still attempting to connect your ESP8266 and BMP to Losant. I just got an ESP8266 and BME280 to communicate temp, pressure and humidity to Losant and built a dashboard. Used the Arduino IDE with the Losant library and the BME280 library. I can give you the code if you are still working on this. Cheers.

---

<div class="post-metadata">

**Author:** ![Nick\_Biliti](https://avatars.discourse-cdn.com/v4/letter/n/45deac/32.png) [@Nick\_Biliti](https://forums.losant.com/u/Nick_Biliti)\
**Post date:** [November 21, 2018, 2:05am UTC](https://forums.losant.com/t/connecting-an-esp8266-an-bmp180-to-losant/926/6 "2018-11-21T02:05:46Z")

</div>

Hey Steve,  
I had put that project aside but plan on coming back to it really soon. It would be much appreciated if you could provide the code!  
Thanks, Nick

---

<div class="post-metadata">

**Author:** ![gausov\_self](https://avatars.discourse-cdn.com/v4/letter/g/a9a28c/32.png) [@gausov\_self](https://forums.losant.com/u/gausov_self)\
**Post date:** [August 18, 2019, 3:27pm UTC](https://forums.losant.com/t/connecting-an-esp8266-an-bmp180-to-losant/926/7 "2019-08-18T15:27:49Z")

</div>

Hi Steve,

Please, share your code ESP8266 + BME280 + Losant. I would be really appreciate it!

Thank you very much!

---

<div class="post-metadata">

**Author:** ![Steve\_Barker](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@Steve\_Barker](https://forums.losant.com/u/Steve_Barker)\
**Post date:** [August 21, 2019, 11:45pm UTC](https://forums.losant.com/t/connecting-an-esp8266-an-bmp180-to-losant/926/8 "2019-08-21T23:45:15Z")

</div>

![](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/d/df469d3edbed78cb9df92f5867cc384703eded71.png)

[**gausov\_self**](https://forums.losant.com/u/gausov_self)  
August 18

Hi Steve,

Please, share your code ESP8266 + BME280 + Losant. I would be really appreciate it!

Thank you very much!
