Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Json 将数据从matlab上传到firebase_Json_Matlab_Firebase_Firebase Realtime Database - Fatal编程技术网

Json 将数据从matlab上传到firebase

Json 将数据从matlab上传到firebase,json,matlab,firebase,firebase-realtime-database,Json,Matlab,Firebase,Firebase Realtime Database,Firebase为我从matlab上传的数据创建了一个名称。 有没有办法取消这个名字?或者将其设置为常量,以便下次上传时覆盖它 例如: (我希望来自matlab的数据与adc样本的结构相同) 这是我使用的代码: Firebase_Url = 'https://***.firebaseio.com/data_from_matlab.json/'; response = webwrite(Firebase_Url,'{ "first": "Jack", "last": "Sparrow" }')

Firebase为我从matlab上传的数据创建了一个名称。 有没有办法取消这个名字?或者将其设置为常量,以便下次上传时覆盖它

例如:

(我希望来自matlab的数据与adc样本的结构相同)

这是我使用的代码:

Firebase_Url = 'https://***.firebaseio.com/data_from_matlab.json/';
response = webwrite(Firebase_Url,'{ "first": "Jack", "last": "Sparrow" }')
它看起来像是发送了一个HTTP
POST
请求

看起来您可以在参数中传递
RequestMethod:'put'
,以发送
put
请求,该请求将Firebase转换为该位置的直接写入。比如:

webwrite(Firebase_Url,'{ "first": "Jack", "last": "Sparrow" }',
         weboptions("RequestMethod", "put"))

实际上,我也遇到了类似的问题,但我想添加多个具有不同名称的对象,当我使用
RequestMethod时,
weboptions
Firebase中的“put”
删除了我的旧对象。我查看了上面给出的示例,发现使用
RequestMethod:'patch'
我可以在同一类别下添加多个对象,而无需获得随机生成的密钥