Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

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!

 

Regards,

Smart Home Forum by FIBARO Team


Question

Posted

Hello community,

 

While coding Scenes and Virtual Devices I noticed syntax, scope and functional differences for the same code.
This is a huge source of confusion, frustation and bugs.

 

The cause is different LUA versions for Scenes and Virtual Devices in the very same HC2 FW.

Staggering! Check for your self with this line of code:         fibaro:debug( _VERSION ) 

 

In HC2 FW 4.160:
Scenes use LUA 5.2

VD's      use LUA 5.1
Update 4.170 has not been installed yet but there is no mention of LUA version updates.
Maybe someone is willing to report back here.


Fibaro should at least update VD LUA to version 5.2 to equal Scenes LUA.
Best would be to update VD LUA and Scenes LUA to always the same version, best 5.3.(4)

That saves a lot of frustration!!! and frees a ton of space in the FW image for new features.
Do you also want to get this fixed then report this to [email protected] .


 

LUA versions

Source:

Please login or register to see this link.

Please login or register to see this link.

Lua 5.3 was released on 12 Jan 2015. Its

Please login or register to see this link.

are integers, bitwise operators, a basic utf-8 library, and support for both 64-bit and 32-bit platforms.

The current release is

Please login or register to see this link.

, released on 30 Jan 2017.

Please login or register to see this image.

Please login or register to see this link.

Lua 5.2 was released on 16 Dec 2011. Its

Please login or register to see this link.

are yieldable pcall and metamethods, new lexical scheme for globals, ephemeron tables, new library for bitwise operations, light C functions, emergency garbage collector, goto statement, and finalizers for tables.

The last release was

Please login or register to see this link.

, released on 07 Mar 2015. There will be no further releases of Lua 5.2.

Please login or register to see this link.

Lua 5.1 was released on 21 Feb 2006. Its main new features were a new module system, incremental garbage collection, new mechanism for varargs, new syntax for long strings and comments, mod and length operators, metatables for all types, new configuration scheme via luaconf.h, and a fully reentrant parser.

 

1 answer to this question

Recommended Posts

  • 0
Posted

The topic has been moved from "

Please login or register to see this link.

" to "

Please login or register to see this link.

".

 

Temat został przeniesiony z "

Please login or register to see this link.

" do "

Please login or register to see this link.

".

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...