-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiot_broker.yml
63 lines (63 loc) · 1.51 KB
/
iot_broker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
asyncapi: '2.0.0'
info:
title: IoT Broker Async API
version: '1.0.0'
channels:
device/+/provisioned:
parameters:
macAddress:
description: MAC address of the device
schema:
type: string
subscribe:
message:
name: DeviceProvisionedEvent
payload:
$ref: '#/components/schemas/DevicePayload'
publish:
message:
name: DeviceProvisionedEvent
payload:
$ref: '#/components/schemas/DevicePayload'
device/+/status:
parameters:
macAddress:
description: MAC address of the device
schema:
type: string
subscribe:
message:
name: DeviceStatusChangedEvent
payload:
$ref: '#/components/schemas/DevicePayload'
publish:
message:
name: DeviceStatusChangedEvent
payload:
$ref: '#/components/schemas/DevicePayload'
components:
schemas:
DevicePayload:
type: object
properties:
name:
type: string
description: Name of the device
macAddress:
type: string
description: MAC address of the device
location:
type: string
description: Location of the device
status:
type: string
description: Status of the device
lastReported:
type: string
description: Last reported time of the device
required:
- name
- macAddress
- location
- status
- lastReported