Luos new feature: manage Pipe type and command.

? New feature in the 1.3.0: Manage Pipe type and command

The Gate in a Luos environment is something tremendously important and used to check or control a Luos network, and (teaser…) it will be even more important for the next revision! ?


This content originally appeared on DEV Community and was authored by Emanuel Allely

? New feature in the 1.3.0: Manage Pipe type and command

The Gate in a Luos environment is something tremendously important and used to check or control a Luos network, and (teaser...) it will be even more important for the next revision! ?

Basically, its task is to share the entire machine capabilities to the outer world by translating Luos things into a standard format easy to use with standard software languages such as Python, Javascript, Ruby, C++, etc.

On the previous version of the Gate example, you needed to modify the code to adapt it to your project's specificities, and it was an arduous task. Then we decided to make it simple and portable for you.

We split it into 2 parts, the main Gate App and a Driver:

Now the Gate is an App. Meaning it doesn't have any code related to hardware. It's a basic ANSI C that you can compile directly for any MCU or CPU without any additional configuration! This way, you can easily add it to your setup.

We also added a build option allowing you to select the output format managed by the Gate or create your own easily. For now, we have 2 JSON options, the one we use on the previous version (cJSON), and a new one (TinyJSON) that doesn't make any dynamic allocation.

The Pipe is the driver part: This Driver allows sending or receiving data from the outer world and converting those data to the Luos side. A Pipe can be USB, serial, Wifi, Bluetooth, an SD card, or anything allowing to send and receive information to/from another machine.

This new type of driver can be used for different purposes, and the Gate App needs it to exchange information and share its output format.

As a Gate user, you will only have to adapt this Pipe driver to your needs. The Gate will deal with it.

More details about this can be found in the Gate section of our documentation.


This content originally appeared on DEV Community and was authored by Emanuel Allely


Print Share Comment Cite Upload Translate Updates
APA

Emanuel Allely | Sciencx (2021-07-27T12:22:39+00:00) Luos new feature: manage Pipe type and command.. Retrieved from https://www.scien.cx/2021/07/27/luos-new-feature-manage-pipe-type-and-command/

MLA
" » Luos new feature: manage Pipe type and command.." Emanuel Allely | Sciencx - Tuesday July 27, 2021, https://www.scien.cx/2021/07/27/luos-new-feature-manage-pipe-type-and-command/
HARVARD
Emanuel Allely | Sciencx Tuesday July 27, 2021 » Luos new feature: manage Pipe type and command.., viewed ,<https://www.scien.cx/2021/07/27/luos-new-feature-manage-pipe-type-and-command/>
VANCOUVER
Emanuel Allely | Sciencx - » Luos new feature: manage Pipe type and command.. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/07/27/luos-new-feature-manage-pipe-type-and-command/
CHICAGO
" » Luos new feature: manage Pipe type and command.." Emanuel Allely | Sciencx - Accessed . https://www.scien.cx/2021/07/27/luos-new-feature-manage-pipe-type-and-command/
IEEE
" » Luos new feature: manage Pipe type and command.." Emanuel Allely | Sciencx [Online]. Available: https://www.scien.cx/2021/07/27/luos-new-feature-manage-pipe-type-and-command/. [Accessed: ]
rf:citation
» Luos new feature: manage Pipe type and command. | Emanuel Allely | Sciencx | https://www.scien.cx/2021/07/27/luos-new-feature-manage-pipe-type-and-command/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.