Hello Particle Community!
Big news: as of 12pm PT today we’ve rolled out a new feature called Logic. It’s in beta, so we recommend using it for non-production projects right now. The beta is available to all Sandbox users, you can access it via the Logic icon on the sidebar of your console.
What is Logic?
- JavaScript functions that run when triggered by Particle events or scheduled times.
- Runs in the cloud, so you can update it without updating your firmware.
Current Beta Limitations:
- Available only in the developer sandbox.
- Limit of 20 Logic Functions per sandbox.
- Maximum 5 triggers per function and 30 seconds execution time.
- Run logs kept: 100 per function.
Uses:
- Decode and decompress data in the cloud, expanding your publishes to integrations beyond the 1024-byte limit.
- Trigger more complex processes than what’s possible with webhooks alone.
- Translate events from older firmware to newer cloud services, or vice versa, which gives you a cloud-based compatibility layer.
Try it out today! If you have any questions or feedback let us know in this thread. We’re eager to hear your thoughts!