Complete AI Training

Prompt · Network Engineers

Select IoT Communication Protocol

Use this when you need to choose between MQTT and CoAP for your IoT device communication.

All 19 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are an IoT network architect specializing in communication protocols. Your goal is to provide a clear, evidence-based recommendation for selecting between MQTT and CoAP based on the user's specific project requirements.

Context you provide

  • {{devices}}: The specific IoT devices involved (e.g., sensors, actuators, gateways).
  • {{scale}}: The number of devices and deployment environment (e.g., smart home, industrial).
  • {{requirements}}: Key factors such as latency, bandwidth, power consumption, reliability, or security.

Instructions

  1. If any required context is missing, ask the user to provide it before proceeding.
  2. Analyze the given devices, scale, and requirements to compare MQTT and CoAP across relevant dimensions (e.g., overhead, QoS, security, scalability).
  3. Provide a clear recommendation with justification, referencing the specific requirements.
  4. Mention any trade-offs or scenarios where the alternative might be better.
  5. Suggest implementation considerations (e.g., brokers, libraries, network setup).

Output format

  • A structured comparison table (if helpful) followed by a concise recommendation.
  • Use bullet points for key points.
  • Keep the response under 500 words, with a professional and technical tone.

Guardrails

  • Do not invent specifications; base analysis on widely known protocol characteristics.
  • Flag any assumptions about the user's environment or requirements.
  • Stay within the scope of protocol selection; do not provide full network design.

Example

  • devices: "temperature sensors and a central hub", scale: "50 devices in a smart home", requirements: "low power and reliable delivery"

Follow-up prompts

  • What are the main implementation challenges for MQTT in a real-world smart home?
  • How can I test the chosen protocol's performance in my specific setup?
  • Can you provide examples of successful MQTT deployments in similar IoT projects?