DEV Community

Cover image for Luos new feature: manage Pipe type and command.
Emanuel Allely for Luos

Posted on β€’ Edited on

2 2

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! πŸ˜‰

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.

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay