0
0
IOT Protocolsdevops~10 mins

Protocol selection criteria (bandwidth, power, latency) in IOT Protocols - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to select a protocol based on {{BLANK_1}} requirements.

IOT Protocols
if device_power < 10:
    protocol = '[1]'
else:
    protocol = 'WiFi'
Drag options to blanks, or click blank then click option'
ABluetooth Low Energy
BEthernet
CWiFi
DZigbee
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing WiFi for low power devices, which consumes more power.
2fill in blank
medium

Complete the code to select a protocol based on {{BLANK_1}} needs.

IOT Protocols
if required_bandwidth > 1000:
    protocol = '[1]'
else:
    protocol = 'LoRaWAN'
Drag options to blanks, or click blank then click option'
AZigbee
BBluetooth Low Energy
CNFC
DWiFi
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing Zigbee or BLE which have lower bandwidth.
3fill in blank
hard

Fix the error in selecting a protocol for low {{BLANK_1}}.

IOT Protocols
if latency > 100:
    protocol = 'LoRaWAN'
else:
    protocol = '[1]'
Drag options to blanks, or click blank then click option'
AZigbee
BBluetooth Low Energy
CEthernet
DWiFi
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing LoRaWAN or Zigbee which have higher latency.
4fill in blank
hard

Fill both blanks to select a protocol based on power and bandwidth.

IOT Protocols
if device_power < 5 and bandwidth < 250:
    protocol = '[1]'
else:
    protocol = '[2]'
Drag options to blanks, or click blank then click option'
AZigbee
BWiFi
CBluetooth Low Energy
DEthernet
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up protocols for power and bandwidth requirements.
5fill in blank
hard

Fill all three blanks to create a dictionary mapping criteria to protocols.

IOT Protocols
protocol_map = {
    'low_power': '[1]',
    'high_bandwidth': '[2]',
    'low_latency': '[3]'
}
Drag options to blanks, or click blank then click option'
ABluetooth Low Energy
BWiFi
CEthernet
DLoRaWAN
Attempts:
3 left
💡 Hint
Common Mistakes
Assigning LoRaWAN incorrectly to high bandwidth or low latency.