control of whr930

@mcvflorin;

i am stil having problems linking the action in the json file (giving a command) and executing the command in the I_ file.

If i create a scene to change the settings to values are changed.

at the moment i want the orders to be excuuted in the I_ file

if i look at different other plugins it should be correct, so pls be so kind to advice

the next step is to use SendCommand to an Network Converter RS232/RS485 to TCP/IP but that is next puzzle

thanks in advance
huib

Did somebody had the chance to look at the command structure?
At the moment i am sort of stuck, so some help /guidance is much appriciated
Rgds
Huib

Thanks,
Wil look into it
Rgds
Huib

I am stil having the following problem on which i need some assistance;

in the I_file i have created an
if i use the same instruction in a scene i can change the corresponding variable

on the screen at the dashboard on the screen i can see the value changing

in the file D_json file i have a button, and attached to this button a link to the action

BUT IT DOES NOT WORK

So could you have a look and advice what i am doing wrong

thanks in advance

huib

In the Json file you use only actions that are not defined in the S_ file. And the only action you defined in the S_ file (Data) is not called anywhere in the Json file.

You must define an action in the S_ file and implement it in the I_ file to use it.

@mcvflorin,

Can you give me an example, based on my files?

Thanks and regards

Huib

@mcvflorin,

I have got working.
Up to next step, communication out and reading data in

Rgds
Huib

Next level;
How can i simulate incoming data
I have a data string in hex (0x07 0xD4 0x06 …)

If i make a string DaraIn with this info which needs to be used
So how can i simulate this DataIn as input from an rs232to ip adapter
And process it as requested.

Pls advice
Huib

It depends. If you use the raw protocol, make a for and call your incoming data handler function for every byte. Otherwise, pass all the data at once to that function.

After a busy periode doing other things, back to the project

I have bought an EZL-70(A) Ethernet-RS232/RS485 10Base-T module to write the communication part of it

At the moment i am having problems with the settings of the ip adress and ports

Somebody using this adapter?

rgds
Huib

After a long periode i have taken up the project up again

if i sent an message to the unit using

	local Start_Byte 			=  string.char(7) .. string.char(240)   --  "07F0"
	local Stop_Byte 			=  string.char(7) .. string.char(15)	--	"070F"

how do change the respond in to ascii?

pls advice
huib