Connect Roblox to The Things Network ... To create an #IoT Digital Twin? 🤔
https://developer.roblox.com/en-us/api-reference/class/HttpService
https://www.thethingsindustries.com/docs/integrations/storage/retrieve/
What's a "Digital Twin"? It's a Virtual Object that mirrors a Real-World Object thru Sensors and Actuators ... Let's build this with #Roblox and #TheThingsNetwork
#Roblox Lua Scripting looks fun!
https://developer.roblox.com/en-us/onboarding/intro-to-coding/1
#TheThingsNetwork exposes an API (HTTP GET) ... To fetch the Sensor Data from our #LoRa Devices
https://github.com/lupyuen/roblox-the-things-network#fetch-sensor-data-from-the-things-network
#Roblox provides a Lua Scripting API that fetches External HTTP URLs (GET and POST)
https://developer.roblox.com/en-us/api-reference/class/HttpService
#Roblox fetches Sensor Data from #TheThingsNetwork yay! 🎉 Next we decode the Sensor Data with Base64 and CBOR
To decode Base64 and CBOR in #Roblox ... Just copy the Lua Libraries as ModuleScripts
https://github.com/lupyuen/roblox-the-things-network#decode-base64-and-cbor-in-roblox
Here's the #Roblox Lua Script that fetches Sensor Data from #TheThingsNetwork
https://github.com/lupyuen/roblox-the-things-network/blob/main/DigitalTwin.lua
Our #Roblox Script fetches Sensor Data from #TheThingsNetwork ... And decodes Base64 + CBOR correctly yay! 🎉
@TikToc "t" is my shortened name for "Temperature" ... Because LoRa packets on The Things Network should be 12 bytes or less due to their Free For Fair Use policy:
https://lupyuen.github.io/articles/ttn#fair-use-of-the-things-network