%% Write Data with Timestamp
% Write a timestamp for the value being written to a channel. The timestamp provided is interpreted as local time.

tStamp = datetime('now')
thingSpeakWrite(17504,[2.3,1.2,3.2,0.1],'WriteKey','23ZLGOBBU9TWHG2H','TimeStamp',tStamp)

%
% Copyright 2018 The MathWorks, Inc.