Welcome to Smart Home Forum by FIBARO
as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.
As a member you can:
- Start new topics and reply to others
- Follow topics and users to get email updates
- Get your own profile page and make new friends
- Send personal messages
- ... and learn a lot about our system!
Smart Home Forum by FIBARO Team
to make a connection between the HC2 and other IP base units like a raspberry PI you need to use the LUA code
local name = Net.FHttp("IP adress", port)
in my case this leads to a error message telling me that I am trying to index or assign a nil value to the variable "Net".
some investigation leads to the assumption that my HC2 is missing a HTTP module. to test this I used the lines
if Net == nil
then fibaro:debug("no net")
if Net ~= nil
I get "no net" as result.
then I read that I should install the network module with
local name require ("socket.http")
Please login or register to see this link.
the require function should take care of all the dependencies and install the network module.
unfortunately this also leads to a error saying that I am trying to assign a nil value to a variable.
where am I going wrong?
HC2 with latest software versionEdited by robd
Link to comment
Share on other sites
16 answers to this question
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.