Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

explorer sdk中单个事件的json不对 #301

Open
2821840032 opened this issue May 11, 2021 · 1 comment
Open

explorer sdk中单个事件的json不对 #301

2821840032 opened this issue May 11, 2021 · 1 comment

Comments

@2821840032
Copy link

单个事件代码:
image
多个事件代码:
image

代码运行结果:
image

多事件json格式是正常的
我尝试添加event属性,但是返回了404

@Supowang1989
Copy link
Collaborator

404错误是找不到上报的属性,您可以检查一下数据模板的定义,有没有定义brightnessevent的事件,这个事件下面有没有定义brightness的属性。
需要先定义数据模板,属性是先定义好,然后再上报对应属性,您这里好像理解成了使用event_post来添加属性。可以看一下 https://cloud.tencent.com/document/product/1081/34916 这里面的说明。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants