HardwareMessage: Message<"meshtastic.HardwareMessage"> & {
    gpioMask: bigint;
    gpioValue: bigint;
    type: HardwareMessage_Type;
}

An example app to show off the module system. This message is used for REMOTE_HARDWARE_APP PortNums. Also provides easy remote access to any GPIO. In the future other remote hardware operations can be added based on user interest (i.e. serial output, spi/i2c input/output). FIXME - currently this feature is turned on by default which is dangerous because no security yet (beyond the channel mechanism). It should be off by default and then protected based on some TBD mechanism (a special channel once multichannel support is included?)

Type declaration

  • gpioMask: bigint

    What gpios are we changing. Not used for all MessageTypes, see MessageType for details

    from field: uint64 gpio_mask = 2;

  • gpioValue: bigint

    For gpios that were listed in gpio_mask as valid, what are the signal levels for those gpios. Not used for all MessageTypes, see MessageType for details

    from field: uint64 gpio_value = 3;

  • type: HardwareMessage_Type

    What type of HardwareMessage is this?

    from field: meshtastic.HardwareMessage.Type type = 1;

from message meshtastic.HardwareMessage