Skip to content

Decoding message received on s101Client.EmberDataReceived #69

@dhertel82

Description

@dhertel82

Hello,

I'm using EmberPlusSharp-Lib for communication with the EmberPlusViewer.
I'm sending a ParameterTree to the Viewer and receive messages for subscription/unsubscription from the Viewer.
Receiving of messages looks like this:

var s101Client = CreateS101Client(tcpClient);
s101Client.EmberDataReceived += S101Client_EmberDataReceived;

private static void S101Client_EmberDataReceived(object? sender, MessageReceivedEventArgs e)
{
	byte[] payLoadBytes = e.GetPayload(); 	// <- trying to decode this payload
	...
}

Now I'm trying to make sense of the message payload. The payload for a subscription from the viewer looks like this:

60 80 6b 80 a0 80 69 80 a0 03 0d 01 20 a2 80 64 80 a0 80 62 80 a0 03 02 01 1e 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20

Is there a way to use the EmberPlusSharp-Library to decode this Ember-message?

regards
dhertel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions