Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decoding message received on s101Client.EmberDataReceived #69

Open
dhertel82 opened this issue Dec 12, 2023 · 0 comments
Open

Decoding message received on s101Client.EmberDataReceived #69

dhertel82 opened this issue Dec 12, 2023 · 0 comments

Comments

@dhertel82
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant