如何使用Matlab从Firebase上传/下载文件?

时间:2019-04-24 06:17:44

标签: matlab firebase firebase-realtime-database

我需要使用matlab上传和下载文件。我尝试了“ https://ch.mathworks.com/help/matlab/ref/webwrite.html”,但没有用。 在matlabtools中尝试了一个代码:

clear all; close all; clc;
thingSpeakURL = 'https://deneme-b25e4.firebaseio.com/';
thingSpeakWriteURL = [thingSpeakURL 'update'];
writeApiKey = '****************************************';
fieldName = 'field1';
fieldValue = 42;
response = webwrite(thingSpeakWriteURL,'api_key',writeApiKey,fieldName,fieldValue)

使用readContentFromWebService时出错(第46行) 响应对URL的请求,服务器返回状态405,并显示消息“方法不允许” https://deneme-b25e4.firebaseio.com/update

0 个答案:

没有答案