# MQTT and new AWS IoT service

**URL:** <https://community.particle.io/t/mqtt-and-new-aws-iot-service/16483>\
**Category:** Libraries\
**Created:** [October 12, 2015, 7:55pm UTC](https://community.particle.io/t/mqtt-and-new-aws-iot-service/16483 "2015-10-12T19:55:01Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![vandelay](https://avatars.discourse-cdn.com/v4/letter/v/278dde/32.png) [@vandelay](https://community.particle.io/u/vandelay)\
**Post date:** [March 14, 2016, 5:49pm UTC](https://community.particle.io/t/mqtt-and-new-aws-iot-service/16483/21 "2016-03-14T17:49:56Z")

</div>

Any news, good or bad, on getting support for either MQTT-TLS or HTTPS in the Photon?  
Thanks 😄

---

<div class="post-metadata">

**Author:** ![Murkh](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/murkh/32/9779_2.png) [@Murkh](https://community.particle.io/u/Murkh)\
**Post date:** [April 30, 2016, 5:25am UTC](https://community.particle.io/t/mqtt-and-new-aws-iot-service/16483/22 "2016-04-30T05:25:36Z")

</div>

Any one get this working with AWS IOT?

---

<div class="post-metadata">

**Author:** ![teju.ishwar](https://avatars.discourse-cdn.com/v4/letter/t/ee59a6/32.png) [@teju.ishwar](https://community.particle.io/u/teju.ishwar)\
**Post date:** [May 2, 2016, 2:18pm UTC](https://community.particle.io/t/mqtt-and-new-aws-iot-service/16483/24 "2016-05-02T14:18:53Z")

</div>

Hello Sharding,  
i want to update a device shadow through lambda function,and am new to lambda functions and not very well used to lambda nodejs coding,so can u pls help me on how to update a device shadowing by using lambda functions.  
Hope you do the needfull.  
Thanku.

---

<div class="post-metadata">

**Author:** ![tedder](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/tedder/32/9646_2.png) [@tedder](https://community.particle.io/u/tedder)\
**Post date:** [May 14, 2016, 2:40am UTC](https://community.particle.io/t/mqtt-and-new-aws-iot-service/16483/25 "2016-05-14T02:40:52Z")

</div>

> Any one get this working with AWS IOT?

Presumably it won't happen until there is legit TLS support on Particle. Here's an effort/discussion: [Any mbed TLS efforts yet?](https://community.particle.io/t/any-mbed-tls-efforts-yet/16854/13)

The "what about us????" attitude from Particle seems to miss the point, many of us have large stacks on AWS already, which makes service integration much faster (especially given limited http/https support, which means REST can't be used with existing solutions).

---

<div class="post-metadata">

**Author:** ![wartix\_fr](https://avatars.discourse-cdn.com/v4/letter/w/278dde/32.png) [@wartix\_fr](https://community.particle.io/u/wartix_fr)\
**Post date:** [June 3, 2016, 8:29pm UTC](https://community.particle.io/t/mqtt-and-new-aws-iot-service/16483/27 "2016-06-03T20:29:50Z")

</div>

I use the programmer shield to do re-flash the photon to  
have a direct connection to AWS IOT. By doing that you will loose all  
the feature of the original firmware.

I successfully connect to AWS IOT from Photon.

I found [this article](https://community.broadcom.com/message/20556#20556) on Broadcom’s forum. (I post my modification on this forum too)

Download and unzip the [WICED-SDK-3.5.2.7z.zip](https://community.broadcom.com/docs/DOC-2780) (need to register)

By following the article you will create a new profile.  
If you follow the step by step at the end of the post you will modify an existing profile.  
This will allow you to run Broadcom’s example where you can connect to AWS IOT through MQTT.

---

<div class="post-metadata">

**Author:** ![eric](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/eric/32/20751_2.png) [@eric](https://community.particle.io/u/eric)\
**Post date:** [July 6, 2016, 8:57pm UTC](https://community.particle.io/t/mqtt-and-new-aws-iot-service/16483/29 "2016-07-06T20:57:00Z")

</div>

+1 for AWS IoT SDK support. I know it’s not easy but would be great to have it officially supported in particle (or at least a MQTT/TLS with client side certificates for device authentication).

---

<div class="post-metadata">

**Author:** ![pdominique](https://avatars.discourse-cdn.com/v4/letter/p/c77e96/32.png) [@pdominique](https://community.particle.io/u/pdominique)\
**Post date:** [July 26, 2016, 8:54pm UTC](https://community.particle.io/t/mqtt-and-new-aws-iot-service/16483/30 "2016-07-26T20:54:29Z")

</div>

+1 for AWS IoT support

The Adafruit WICED WiFi Feather now supports AWS IoT: [https://blog.adafruit.com/2016/07/26/adafruit-wiced-now-supports-amazons-aws/](https://blog.adafruit.com/2016/07/26/adafruit-wiced-now-supports-amazons-aws/)

---

<div class="post-metadata">

**Author:** ![tedder](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/tedder/32/9646_2.png) [@tedder](https://community.particle.io/u/tedder)\
**Post date:** [July 27, 2016, 3:51am UTC](https://community.particle.io/t/mqtt-and-new-aws-iot-service/16483/31 "2016-07-27T03:51:08Z")

</div>

> The Adafruit WICED WiFi Feather now supports AWS IoT

Whoa, that's huge.

..anyone want to buy my assorted Particles?

---

<div class="post-metadata">

**Author:** ![RWB](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rwb/32/22599_2.png) [@RWB](https://community.particle.io/u/RWB)\
**Post date:** [August 8, 2016, 1:47am UTC](https://community.particle.io/t/mqtt-and-new-aws-iot-service/16483/32 "2016-08-08T01:47:53Z")

</div>

@gusgonnet @sharding Hey guys, how close is what you were doing with Amazon AWS to this implementation I just ran across?

 ![](https://us1.discourse-cdn.com/flex026/uploads/particle/original/2X/e/e1e76d40cbb2f89bc17206276f8f247034cda7e5.png)

[http://mlapida.com/thoughts/serverless-iot-with-particle-and-aws](http://mlapida.com/thoughts/serverless-iot-with-particle-and-aws)

---

<div class="post-metadata">

**Author:** ![sharding](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/sharding/32/7342_2.png) [@sharding](https://community.particle.io/u/sharding)\
**Post date:** [August 8, 2016, 2:02am UTC](https://community.particle.io/t/mqtt-and-new-aws-iot-service/16483/33 "2016-08-08T02:02:48Z")

</div>

I don’t have time to read the article right now, but that very high-level diagram exactly matches what I’m doing.

---

<div class="post-metadata">

**Author:** ![gusgonnet](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/gusgonnet/32/27491_2.png) [@gusgonnet](https://community.particle.io/u/gusgonnet)\
**Post date:** [August 8, 2016, 2:04am UTC](https://community.particle.io/t/mqtt-and-new-aws-iot-service/16483/34 "2016-08-08T02:04:15Z")

</div>

My project is pretty similar on the “front-end” (up until the api GW): 🙂  
[![](https://hackster.imgix.net/uploads/image/file/114409/ParticleAmazonCloud.png?w=680&h=510&fit=max) ](https://hackster.imgix.net/uploads/image/file/114409/ParticleAmazonCloud.png?w=680&h=510&fit=max)

ref: [https://www.hackster.io/gusgonnet/email-notifications-using-amazon-web-services-cd2bf3](https://www.hackster.io/gusgonnet/email-notifications-using-amazon-web-services-cd2bf3)

---

<div class="post-metadata">

**Author:** ![RWB](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rwb/32/22599_2.png) [@RWB](https://community.particle.io/u/RWB)\
**Post date:** [August 8, 2016, 2:09am UTC](https://community.particle.io/t/mqtt-and-new-aws-iot-service/16483/35 "2016-08-08T02:09:50Z")

</div>

I still have a lot to learn but do you think using DynamoDB and this Amazon AWS structure is one of the lowest cost ways to database sensor data sent from a remote Photon or Electron?

I have a product, and I want to database data it generates every min or so.

I’ve tried using Node-Red to receive data sent from a Photon and then send that data to a Mongo DB database but I’m new to this, and I’m not sure what all my options are.

I do hear Amazon AWS is a big player in the market, and I would assume their pricing is as good as any out there due to their scale of business.

---

<div class="post-metadata">

**Author:** ![sharding](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/sharding/32/7342_2.png) [@sharding](https://community.particle.io/u/sharding)\
**Post date:** [August 8, 2016, 2:27am UTC](https://community.particle.io/t/mqtt-and-new-aws-iot-service/16483/36 "2016-08-08T02:27:17Z")

</div>

The nice thing about the AWS solution from a cost standpoint is that for the most part those services are all pay as you go. So it starts out almost free, and grows only as your needs grow. As your project gets larger, you do need to proactively manage the costs because it can get expensive when you’re not paying attention, and a lot of waste can work its way in over time (e.g. unneeded tables or instances hanging around). But I think it’s a pretty good starting point.

---

<div class="post-metadata">

**Author:** ![RWB](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rwb/32/22599_2.png) [@RWB](https://community.particle.io/u/RWB)\
**Post date:** [August 8, 2016, 3:36am UTC](https://community.particle.io/t/mqtt-and-new-aws-iot-service/16483/37 "2016-08-08T03:36:59Z")

</div>

Yes, that does sound good. I’m just looking for the most efficient and cost-effective solution possible.

So can you tell me what the big difference is between the using the Photon & Webhooks or MQTT to send the data to AWS vs. what Adafruit has going on that allows you to connect directly to AWS using the method as mentioned above and linked below? :

The Adafruit WICED WiFi Feather now supports AWS IoT: [https://blog.adafruit.com/2016/07/26/adafruit-wiced-now-supports-amazons-aws/26](https://blog.adafruit.com/2016/07/26/adafruit-wiced-now-supports-amazons-aws/26)

---

<div class="post-metadata">

**Author:** ![gusgonnet](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/gusgonnet/32/27491_2.png) [@gusgonnet](https://community.particle.io/u/gusgonnet)\
**Post date:** [August 8, 2016, 12:38pm UTC](https://community.particle.io/t/mqtt-and-new-aws-iot-service/16483/38 "2016-08-08T12:38:06Z")

</div>

Hey, one thing different is the device shadow feature, that allows you to see (or I believe change as well) a device state or variables even it is not connected to the internet:  
[http://docs.aws.amazon.com/iot/latest/developerguide/iot-thing-shadows.html](http://docs.aws.amazon.com/iot/latest/developerguide/iot-thing-shadows.html)

This shadow feature you get when using MQTT or HTTP. I think you can’t get it with webhooks (or at least I don’t know how to).

An alternative to your project could be to use other, more simplified services, like [ubidots.io](http://ubidots.io), [freeboard.io](http://freeboard.io), [adafruit.io](http://adafruit.io).  
Why? because those services already abstracted many things that you will have to deal with yourself if using AWS.  
This is how I see it:  
AWS: is like programming in assembler or C =\> you get full control and full headaches, since you have to manage everything yourself.  
ubidots or similar: is like programming in python or java =\> you get some sort of control, but the higher level of the language helps you develop faster and it already made things available for you in an easier way.  
I’ll tell you this story to support my view: I spend around a week to make my first use case work in AWS (due to all things involved), and only couple of hours to make my first dashboard in ubidots.  
Gustavo.

---

<div class="post-metadata">

**Author:** ![nicj](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/nicj/32/20749_2.png) [@nicj](https://community.particle.io/u/nicj)\
**Post date:** [August 8, 2016, 2:50pm UTC](https://community.particle.io/t/mqtt-and-new-aws-iot-service/16483/39 "2016-08-08T14:50:54Z")

</div>

I’m doing something very similar as well:

> **[Particle Photon Remote Temperature and Humidity Logger](https://particle.hackster.io/nicjansma/particle-photon-remote-temperature-and-humidity-logger-00dd00)**
>
> Remote temperature and humidity sensor that logs data to Adafruit.io, ThingSpeak and DynamoDB. By Nic Jansma.

WebHook -\> API Gateway -\> Lambda -\> DynamoDB

I wish Particle supported SSL so MQTT could work – seems like it would be a lot easier.

---

<div class="post-metadata">

**Author:** ![gusgonnet](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/gusgonnet/32/27491_2.png) [@gusgonnet](https://community.particle.io/u/gusgonnet)\
**Post date:** [August 9, 2016, 3:23pm UTC](https://community.particle.io/t/mqtt-and-new-aws-iot-service/16483/40 "2016-08-09T15:23:30Z")

</div>

Hi Ryan ,  
in case using a Google spreadsheet as a DB is an option in your scenario, you can take a look at the following article:

> **[Pushing Data to Google Docs](https://www.hackster.io/gusgonnet/pushing-data-to-google-docs-02f9c4)**
>
> Make your hardware push data to a Google spreadsheet. By Gustavo Gonnet.

[![](https://us1.discourse-cdn.com/flex026/uploads/particle/original/2X/9/993a6b61918969281178a4896c4ef8db92be0b03.png)](https://www.hackster.io/gusgonnet/pushing-data-to-google-docs-02f9c4)

---

<div class="post-metadata">

**Author:** ![RWB](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rwb/32/22599_2.png) [@RWB](https://community.particle.io/u/RWB)\
**Post date:** [August 10, 2016, 3:44pm UTC](https://community.particle.io/t/mqtt-and-new-aws-iot-service/16483/41 "2016-08-10T15:44:11Z")

</div>

Thanks @gusgonnet for remembering me on this.

After reading up some more on the DynamoDB + Lambada functions it’s looking like its the best path for what I’m trying to do with a connected product at scale.

For the one-off projects, Ubidots has always worked perfectly for me but can get expensive when scaled up.

---

<div class="post-metadata">

**Author:** ![gusgonnet](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/gusgonnet/32/27491_2.png) [@gusgonnet](https://community.particle.io/u/gusgonnet)\
**Post date:** [August 10, 2016, 4:09pm UTC](https://community.particle.io/t/mqtt-and-new-aws-iot-service/16483/42 "2016-08-10T16:09:17Z")

</div>

> [@RWB](#):
>
> Ubidots has always worked perfectly for me but can get expensive when scaled up.

yes it could...

---

<div class="post-metadata">

**Author:** ![RWB](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rwb/32/22599_2.png) [@RWB](https://community.particle.io/u/RWB)\
**Post date:** [August 10, 2016, 4:15pm UTC](https://community.particle.io/t/mqtt-and-new-aws-iot-service/16483/43 "2016-08-10T16:15:49Z")

</div>

@nicj @gusgonnet @sharding

So what would be the benefit if the Particle devices supported SSL so MQTT could work?

How would the data flow to Dynamo DB change if SSL was supported on the Photon like it is on the Adafruit version?

I’m just trying to understand the differences between the 2 different methods of getting data into the DynamoDB database.

If SSL was supported on the Photon could the Lambada function and fees be skipped?

[Previous page](https://community.particle.io/t/mqtt-and-new-aws-iot-service/16483.md?page=1)

[Next page](https://community.particle.io/t/mqtt-and-new-aws-iot-service/16483.md?page=3)
