Variable BLEGatewayInboundMessageSchemaConst
BLEGatewayInboundMessageSchema: TUnion<
[
TObject<
{
active_gatt_connections: TOptional<TUnion<[TInteger, TNull]>>;
firmware: TOptional<TUnion<[TString, TNull]>>;
gateway_id: TString;
hostname: TOptional<TUnion<[TString, TNull]>>;
mac: TOptional<TUnion<[TString, TNull]>>;
max_gatt_connections: TOptional<TUnion<[TInteger, TNull]>>;
type: TLiteral<"hello">;
},
>,
TUnion<
[
TObject<
{
mac: TOptional<TString>;
session_id: TString;
type: TLiteral<"gatt_connected">;
},
>,
TObject<
{
data: TString;
session_id: TString;
type: TLiteral<"gatt_data">;
uuid: TString;
},
>,
TObject<
{
reason: TOptional<TString>;
session_id: TString;
type: TLiteral<"gatt_disconnected">;
},
>,
TObject<
{
error: TOptional<TString>;
session_id: TString;
type: TLiteral<"gatt_error">;
},
>,
],
>,
TObject<
{
active_gatt_connections: TOptional<TUnion<[TInteger, TNull]>>;
free_heap: TOptional<TUnion<[TNumber, TNull]>>;
max_gatt_connections: TOptional<TUnion<[TInteger, TNull]>>;
type: TLiteral<"status">;
uptime: TOptional<TUnion<[TNumber, TNull]>>;
},
>,
],
> = ...
Every frame a gateway may send to the server.