jooby-codec
    Preparing search index...

    Namespace dataSegment

    Transfer data by breaking it into segments.

    This command is currently used only in module with hardware type MTXLora. This command could be used as uplink or downlink command. The module can send DataSegment command as the response to the request or without any request.

    import * as dataSegment from 'jooby-codec/analog/commands/uplink/dataSegment.js';

    // 4 first channels
    const bytes = [0x02, 0x53, 0x00, 0x01, 0x02, 0x03, 0x04];

    // decoded payload
    const parameters = dataSegment.fromBytes(bytes);

    console.log(parameters);
    // output:
    {
    segmentationSessionId: 2,
    segmentIndex: 3,
    segmentsNumber: 5,
    isLast: false,
    data: [0x00, 0x01, 0x02, 0x03, 0x04]
    };

    Command format documentation

    References

    examples → analog.commands.downlink.dataSegment.examples
    fromBytes → analog.commands.downlink.dataSegment.fromBytes
    headerSize → analog.commands.downlink.dataSegment.headerSize
    id → analog.commands.downlink.dataSegment.id
    name → analog.commands.downlink.dataSegment.name
    toBytes → analog.commands.downlink.dataSegment.toBytes
    toJson → analog.commands.downlink.dataSegment.toJson