Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/LifxNet/LifxClient.DeviceOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public async Task SetDevicePowerStateAsync(Device device, bool isOn)
System.Diagnostics.Debug.WriteLine($"Sending DeviceSetPower({isOn}) to {device.HostName}");
FrameHeader header = new FrameHeader()
{
Identifier = GetNextIdentifier(),
Sequence = GetNextSequence(),
AcknowledgeRequired = true
};

Expand All @@ -54,7 +54,7 @@ public async Task SetDevicePowerStateAsync(Device device, bool isOn)

FrameHeader header = new FrameHeader()
{
Identifier = GetNextIdentifier(),
Sequence = GetNextSequence(),
AcknowledgeRequired = false
};
var resp = await BroadcastMessageAsync<StateLabelResponse>(device.HostName, header, MessageType.DeviceGetLabel).ConfigureAwait(false);
Expand All @@ -74,7 +74,7 @@ public async Task SetDeviceLabelAsync(Device device, string label)

FrameHeader header = new FrameHeader()
{
Identifier = GetNextIdentifier(),
Sequence = GetNextSequence(),
AcknowledgeRequired = true
};
_ = await BroadcastMessageAsync<AcknowledgementResponse>(
Expand All @@ -91,7 +91,7 @@ public Task<StateVersionResponse> GetDeviceVersionAsync(Device device)

FrameHeader header = new FrameHeader()
{
Identifier = GetNextIdentifier(),
Sequence = GetNextSequence(),
AcknowledgeRequired = false
};
return BroadcastMessageAsync<StateVersionResponse>(device.HostName, header, MessageType.DeviceGetVersion);
Expand All @@ -108,7 +108,7 @@ public Task<StateHostFirmwareResponse> GetDeviceHostFirmwareAsync(Device device)

FrameHeader header = new FrameHeader()
{
Identifier = GetNextIdentifier(),
Sequence = GetNextSequence(),
AcknowledgeRequired = false
};
return BroadcastMessageAsync<StateHostFirmwareResponse>(device.HostName, header, MessageType.DeviceGetHostFirmware);
Expand Down
Loading