Particle.io

110 views
Skip to first unread message

Emil Klöfverskjöld

unread,
Apr 24, 2016, 1:42:48 PM4/24/16
to Kaa project
I am wondering about using Kaa for my photons, please note im a begineer at the software world. 
I will have customer using photon and when the photon reacts on a event i want a email sent to that customer.

Particle.io can be configured to send webhook on event so it would be nice if i can make Kaa recive this webhook and send email from the information of the webhook. 

Can Kaa accomplish this for me, and can you please suggest some guides for me to use. 

BR
Emil

Petr Krutsiuk

unread,
May 10, 2016, 3:30:24 AM5/10/16
to Kaa project
Hi,

Sorry for the late reply.

Unfortunately we do not discuss third party hardware platforms in a scope of this forum (but of course we do in commercial proposals).

But you can try to implement next scenario:
Let's start from basics: Kaa IoT platform is comprised of the server component and the endpoint SDK that is integrated into client applications. I understand correctly you can write C or C++ code for Photon application, so you can use corresponding Kaa SDKs.

For simplicity I will consider use case with only one customer first.
in order to gain required functionality you can use data collection feature:
First of all you need to create new application add Log schema for example with field “webhook”.
When the Photon reacts on an event you can add log record using Kaa SDK that would be sent to Kaa cluster.
Also you need to implement and provision custom Log appender which would be processing Log records, here you need to implement logic in which you will send emails with webhooks to your customer.

In more advanced use case you can assign endpoints (devices that consumes Kaa SDK) to users, add configuration schema into application with “userEmail”, then after successful device attachment to user, populate configuration with user email and update it by user id that was used in attach process. Add “userEmail” field to Log schema and on Photon event generate log record with webhook and target email from configuration.

Best regards,
Peter.
Reply all
Reply to author
Forward
0 new messages