If I have 1 input but multi output...How to do?

Dear McI :

  1. If I receive is done so send ok else send bad.
  2. Look at pic :
    {{value | number:2}} //What its mean?

Thank u.

It means format msg.payload to a number with 2 decimal points.

Read the built in help...

image

Dear Steve-Mcl :

  1. {{value | number:2}} But no round the value to two decimal place?
  2. Cause need show some information So if use my way is can to do?

Thank u.

You can see from the demo I gave you is DOES round...

What is "some information"?




I'm afraid much of what you write makes no sense. I realise English is not your first language, so you might be better off using your own language and google translate?

Dear Steve-Mcl :

  1. I see.
  2. Look at pic :

    Thank u.

Yes, I know what a ui-text is and I realise you want to show "O3 send is OK"

BUT

What happens in your flow that determines SEND OK - or - SEND NOT OK?

Dear Steve-Mcl :

ok,
cause msg.payload is a array,
so use parser is use msg.payload and text is too.
so how can I use two mas.payload at same time?
so I hope use payload and topic to send a value and a string.

Thank u.

Sorry, that makes no sense.

Which two msg.payload? You have 5 or 6 values?

I dont understand.

Dear Steve-Mcl :

ok,
Look at pic and below :

  1. Already has O3 Value.
  2. Can add O3 text? How to do?

Thank u.

Yes, you just did.

However,

WHAT VALUE MAKES THE TEXT DISPLAY SEND OK?

WHAT VALUE MAKES THE TEXT DISPLAY SEND NOT OK?

Dear Steve-Mcl :

Cause value is from RX,
So I receive data is done I send ok,
If receive is not done no send,
So no value is mean ok and not ok.

So I hope can value is in payloat and ok in topic.
But I dont knoe how to do!

Thank u.

ok, so set the text to "waiting" when the TX occurs

Then set the text to "Sent OK" when RX occurs...

Use change nodes to set the msg.payload to "Waiting" or "Sending" or "Send OK" e.g...
image

UG29jd65bl

Dear Steve-Mcl :

Yeah,
But buffer parse node output connect to switch node, Use what kind of type to connect?

Thank u.

What switch node?

The screenshot above is showing a change node - to set the msg.payload to "Send OK"
image

image

??? A change node ???
Not sure what you are asking.

Dear Steve-Mcl :

Ok, I see, I will try it.
Thank you for taking such a long time and for your careful explanation.

Thank u very much...

Dear Steve-Mcl :

I have another question :

I receive data from RX,
So I need check CRC by myself,
So use buffer parser is right?

Thank u.

What protocol are you using?

Do you know the CRC calculation?

Have you written the code to calculate CRC?

Dear Steve-Mcl :

Yeah
I think use function check crc then use buffer parset to gauge.

Thank u.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.