SmartBulb | Control Colored Light that is linked to Smart Things
kandi X-RAY | SmartBulb Summary
kandi X-RAY | SmartBulb Summary
Control Colored Light that is linked to Smart Things.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of SmartBulb
SmartBulb Key Features
SmartBulb Examples and Code Snippets
Community Discussions
Trending Discussions on SmartBulb
QUESTION
I'm currently working on a website to control my SmartBulbs at home via a webpage. To do so I use the provided API.
I tried my code with an example json response from the manufacturers website. Everything worked fine and all the lights listed in the example response where represented by divs with the names of the lights.
When I tried my code at home (called the API like in the code) I got a valid response but I also got an error which stated Illegal string offset 'label'. What am I doing wrong?
Everything worked fine when I used the example response. The response when I use the API looks the same for me. Shouldn't it also work then?
You can find everything down below. If you need some mor information just ask :)
php code
...ANSWER
Answered 2017-Feb-19 at 00:48You're setting the wrong option for your cURL handle:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install SmartBulb
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page