Skip to content

Commit

Permalink
Make local communication schemas versionable
Browse files Browse the repository at this point in the history
  • Loading branch information
hhvrc committed Oct 3, 2024
1 parent 290816a commit 5a234f3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
10 changes: 5 additions & 5 deletions HubToLocalMessage.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ table ErrorMessage {
message:string;
}

struct WifiScanStatusMessage {
table WifiScanStatusMessage {
status:Types.WifiScanStatus;
}
table WifiNetworkEvent {
Expand All @@ -42,7 +42,7 @@ enum AccountLinkResultCode : uint8 {
InternalError = 5
}

struct AccountLinkCommandResult {
table AccountLinkCommandResult {
result:AccountLinkResultCode;
}

Expand All @@ -51,17 +51,17 @@ enum SetGPIOResultCode : uint8 {
InvalidPin = 1,
InternalError = 2
}
struct SetRfTxPinCommandResult {
table SetRfTxPinCommandResult {
pin:uint8;
result:SetGPIOResultCode;
}

struct SetEstopEnabledCommandResult {
table SetEstopEnabledCommandResult {
enabled:bool;
success:bool;
}

struct SetEstopPinCommandResult {
table SetEstopPinCommandResult {
gpio_pin:uint8;
result:SetGPIOResultCode;
}
Expand Down
22 changes: 11 additions & 11 deletions LocalToHubMessage.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ attribute "fs_serializer";

namespace OpenShock.Serialization.Local;

struct WifiScanCommand {
table WifiScanCommand {
run:bool;
}
table WifiNetworkSaveCommand {
Expand All @@ -16,11 +16,11 @@ table WifiNetworkForgetCommand {
table WifiNetworkConnectCommand {
ssid:string;
}
struct WifiNetworkDisconnectCommand {
table WifiNetworkDisconnectCommand {
placeholder:bool;
}

struct OtaUpdateSetIsEnabledCommand {
table OtaUpdateSetIsEnabledCommand {
enabled:bool;
}
table OtaUpdateSetDomainCommand {
Expand All @@ -29,16 +29,16 @@ table OtaUpdateSetDomainCommand {
table OtaUpdateSetUpdateChannelCommand {
channel:string;
}
struct OtaUpdateSetCheckIntervalCommand {
table OtaUpdateSetCheckIntervalCommand {
interval:uint16;
}
struct OtaUpdateSetAllowBackendManagementCommand {
table OtaUpdateSetAllowBackendManagementCommand {
allow:bool;
}
struct OtaUpdateSetRequireManualApprovalCommand {
table OtaUpdateSetRequireManualApprovalCommand {
require:bool;
}
struct OtaUpdateHandleUpdateRequestCommand {
table OtaUpdateHandleUpdateRequestCommand {
accept:bool;
}
table OtaUpdateCheckForUpdatesCommand {
Expand All @@ -52,16 +52,16 @@ table OtaUpdateStartUpdateCommand {
table AccountLinkCommand {
code:string;
}
struct AccountUnlinkCommand {
table AccountUnlinkCommand {
placeholder:bool;
}
struct SetRfTxPinCommand {
table SetRfTxPinCommand {
pin:uint8;
}
struct SetEstopEnabledCommand {
table SetEstopEnabledCommand {
enabled:bool;
}
struct SetEstopPinCommand {
table SetEstopPinCommand {
pin:uint8;
}

Expand Down

0 comments on commit 5a234f3

Please sign in to comment.