Main Content

Esta página se ha traducido mediante traducción automática. Haga clic aquí para ver la última versión en inglés.

Leer datos del canal

Use las API REST y MQTT para leer canales usando software o dispositivos

ThingSpeak™ es una plataforma IoT que utiliza canales para almacenar datos enviados desde aplicaciones o dispositivos. Puede leer datos de sus canales ThingSpeak utilizando las llamadas HTTP y la API REST . Puede usar el método de suscripción MQTT para recibir mensajes siempre que se actualice el canal. Y puede usar thingSpeakRead para leer datos de su canal en MATLAB de escritorio. Obtenga más información sobre cuándo Choose Between REST API and MQTT API para actualizar un canal.

API REST

expandir todo

Read DataRead data from all fields in channel with HTTP GET
Read FieldRead data from single field of channel with HTTP GET
Read StatusRead status field of channel with HTTP GET
Read Last EntryRead last entry in channel with HTTP GET
Read Last Field EntryRead last entry in channel field with HTTP GET
Read Last StatusRead last status of channel with HTTP GET
Read Last Entry AgeRead number of seconds since last entry in channel with HTTP GET
Read Last Field Entry AgeRead number of seconds since last entry in field with HTTP GET

API de MQTT

expandir todo

Subscribe to a Channel FeedSubscribe to updates from channel feed with MQTT
Subscribe to a Channel Field FeedSubscribe to channel updates from specific field of channel with MQTT

Funciones

expandir todo

thingSpeakReadRead data stored in ThingSpeak channel (desde R2019a)

Temas

Elija cómo leer datos

Leer datos con Arduino o Particle Photon

Leer datos con ESP8266

Leer datos con ESP32

Solución de problemas

Error Codes

See the details of ThingSpeak REST API error messages and corresponding HTTP status codes.

Troubleshoot MQTT Subscribe

Common mistakes and problem resolution for subscribing to ThingSpeak.