Home AMX User Forum AMX Technical Discussion
Options

Possible to read the last level value?

Hi all,

I read from somewhere that the processor internally keeps track of the last SEND_LEVEL, and skips a SEND_LEVEL if you send the same level value twice or more times.

I'm now wondering if there is some way of reading the level value from outside the LEVEL_EVENT. That would be awesome, so I wouldn't have to create local variables and LEVEL_EVENTS just for storing received level values.

Is there a way to do it like that?

I only need the current value of a LEVEL received in a module, and I need many of them.

Comments

  • Options

    You can see the current value of all the levels on a device through the device status command at the console; don't know of any direct method in code other than caching those values in global variables at each level event for access outside of the level event.

  • Options
    zerkalozerkalo Posts: 19
    edited November 2018

    Thanks for the help.

    I will create an array of INTEGERs and store the levels there on LEVEL_EVENT. But it seems a strange to need to do this, as the levels are already there... somewhere...

Sign In or Register to comment.