Skip to content

Extend signal.transform to support Lua functions. #38

@timrulebosch

Description

@timrulebosch

Essentially this:

kind: SignalGroup
spec:
  signals:
    - signal: pong
      transform:
        lua: |
          function signal__CHNAME__PONG(ctx)
              ctx.value = 42
              return ctx
          end  

Using the same technique as for PDU Net.

Also consider initial value or parameter value, would require support in signal vector code.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions