If you want to catch events in C# or Python I guess googling SSE (server sent events) will render a load of results since it's a concept not unique to Particle devices.
However, there already are some threads about SSE here
e.g.
I’m trying to implement a feature into my C# project where I continuously listen to the SSE stream in the background of my program and when a specific value is returned, the program does something.
I’m just looking to be pointed in the right direction.
In order to continuously listen to the stream in the background of my program, should I create an Asynchronous Method within a thread that returns the values from the SSE stream and waits until a certain value is returned or am I heading in the …
Hello folks,
Here is a Python script to (a) list all registered cores and (b) get Server Sent Events (SSE) using Spark.publish(). (b) is particular is useful if you want your app to get notified of Core events without using an external service like IFTTT.
Nothing fancy, but hopefully someone will find it helpful.
Regards
I wrote a reverse-proxy for subscribing to a Server Sent Event source, which translates events to Particle.io published events. Webhooks can’t subscribe to server sent events (since they would need to maintain an open connection.) Therefore, you can stand up this NodeJS app on a server (I use Heroku) and subscribe to SSE events that way.
For C# you could still use the discontinued SDK here
https://docs.particle.io/reference/discontinued/windows/#events-sub-system