-->
Page 1 of 1

Using the http module - not found

PostPosted: Tue Jan 26, 2016 4:56 am
by ExtraSensory
Using the latest firmware, I'm trying to use the http module in Lua.
How ever, just using 'http' gives the following error:
Code: Select allstdin:1: attempt to index global 'http' (a nil value)

If I add
Code: Select allrequire("http")

I get this error:
Code: Select allstdin:1: module 'http' not found:
   no field package.preload['http']
   no file 'http.lc'
   no file 'http.lua'

Please advise!

Re: Using the http module - not found

PostPosted: Mon Feb 29, 2016 3:27 am
by ketan
ExtraSensory wrote:Using the latest firmware, I'm trying to use the http module in Lua.
How ever, just using 'http' gives the following error:
Code: Select allstdin:1: attempt to index global 'http' (a nil value)

If I add
Code: Select allrequire("http")

I get this error:
Code: Select allstdin:1: module 'http' not found:
   no field package.preload['http']
   no file 'http.lc'
   no file 'http.lua'

Please advise!




Any updates?

Re: Using the http module - not found

PostPosted: Mon Feb 29, 2016 5:31 am
by jankop
Module must be preloaded to esp8266.