what about remote procedure calls? #17105
Replies: 5 comments 6 replies
-
gRPC is common today - but I'm not aware of any MicroPython implementation. if you use websockets or ODATA / REST or plain HTTP, You'll need a server - there are a few that can run on Big and Small python
then you may want to have a serialization protocol to send/recieve 'stuff' in limited memory
there are a few other micropython RPC implementaions |
Beta Was this translation helpful? Give feedback.
-
My concept is different: a specialized web server, on internet, performing tasks - aka "remote procedure calls" - for the tiny micros. You can try this server, it is a testbed where I experiment. Feel free to contact me to report bugs and ideas. |
Beta Was this translation helpful? Give feedback.
-
I fix some bugs and in the help page add the parameters to call 'speak'. Now the function call is cached, so only the first call is slow. NOTE |
Beta Was this translation helpful? Give feedback.
-
For the moment I removed the access control list on countries. |
Beta Was this translation helpful? Give feedback.
-
The new version is online. I improved quite a lot the documentation of the available micro services. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In the past two years I developed some projects on esp8266, esp32 any rpico. Sometimes I have to discard the esp8266 because there isn't sufficient memory to run certain algorithms and/or some basic functions are removed from its port. I know it is a tiny beast, but in the next years the same fate will occur for esp32 and other micros (our projects will grow, following the new hardware and customers requests). But it is a shame to waste hardware in this way. So I put up some routines on a web server and the micros call the server, it does the heavy lifting and returns the result to the micro. Ah, it isn't only a matter of micro constrains. Sometimes I prefer to have a RPC because 1) I haven't to re-code the same algorithms on different cpu (also other micros not running MP) and 2) I have a unique box (the server) where I can monitor the usage of the routines. The RPC available on the server are quite different, some examples: generate a uuid4, get/set values (flat database), hashing, Text To Speech. With the modern connectivity speeds they are quite usable also on WiFi. I just want to share my ideas: what do you think ? Have you any specific algorithm you think useful if callable as RPC ?
Beta Was this translation helpful? Give feedback.
All reactions