我是Firebase的初学者,我已经将传感器数据上传到Firebase实时数据库,但是Firebase中每个节点的名称都是随机字母。我想将这些数据组设置为序列号,例如1,2,3,4,5 .....
这是C#中的代码,我应该在代码中添加些什么?
var request = WebRequest.CreateHttp("https://........firebaseio.com/.json");
request.Method = "PATCH";
request.ContentType = "Application/json";
var buffer = Encoding.UTF8.GetBytes(json);
request.ContentLength = buffer.Length;
request.GetRequestStream().Write(buffer, 0, buffer.Length);
var response = request.GetResponse();
json = (new StreamReader(response.GetResponseStream())).ReadToEnd();
希望有任何建议。