thingSpeakWriterCla​ss

버전 1.4.0.0 (12.8 KB) 작성자: Björn Skatt
Really simple IoT writer tool - adding data bursts, named fields and efficency option
다운로드 수: 585
업데이트 날짜: 2015/8/5

라이선스 보기

Writing data from Matlab to ThingSpeak.com is extremely easy (type "doc webwrite" in matlab and check the first example). This class adds three features: (1) Fifo for short bursts of data beyond the 15 s limit (2) An optional powershell script that brings down write time from an unpredictable 0.35-5 seconds to a known 0.035 seconds on any connection. (3) The general ease of working with an object. You see directly what you can do and how to do it.
Example 1 - Minimal:
================
t = thingSpeakWriterClass('8Y3SNIGB3MDGCDUJ');
t.write([1,2,3]);

Example 2 - Named fields:
====================
t = thingSpeakWriterClass('8Y3SNIGB3MDGCDUJ');
t.readFieldNames(45789); %Read and display the channel setup from thingspeak.com
data.Appetite = 5;
data.status = 'Bring me pizza or you shall...';
ok = t.write(data); %ok <= 0 on fail. = entryID on success.

인용 양식

Björn Skatt (2024). thingSpeakWriterClass (https://www.mathworks.com/matlabcentral/fileexchange/52338-thingspeakwriterclass), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2015a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 ThingSpeak에 대해 자세히 알아보기
커뮤니티
 ThingSpeak 커뮤니티에 더 많은 파일이 있습니다

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.4.0.0

Added white space in description (how hard can it be)?

1.3.0.0

Just edited the description

1.2.0.0

Version 1.2 allows writeMode = 'powershell' to write:
data.status = 'PS ok: !"#¤%&/()=?´´@£$€{[]}\+;:,.-_<>|§½¨^~''*'
Characters '"\;#&' are silently removed and the rest is passed on.
OBS! The standard writeMode = 'webwrite' writes any string.

1.1.0.0

Fixed a couple of typos in the documentation and added a new example

1.0.0.0