Moving your API on scriptr.io from RPC to REST

RPC and REST As you probably know, scriptr.io’s scripts are the main component used for implementing business process and/or secure API for your IoT applications. Hence, any script you write in scriptr.io is immediately accessible to remote clients, through HTTP or Web Sockets. RPC If you have been browsing through the different posts in this blog, you might have noticed that in most of our examples, we actually adopt the RPC (Remote Procedure Call) style when implementing sample APIs. As it’s name implies, RPC is about invoking a remote function (action), therefore, scripts used to implement RPC-based API usually...

Read More