2 Inputs but 1 output
Hi,
I been playing with publisher and subscribers recently and wish to challenge myself. Recently i wish to make a program such that: node A : ask user for input ("H or B") node B : ask user for input ( "key in 2 numbers:")
the 2 nodes will transfer the user data via topics to node C.
node C: publish (Hello and the value of the addition of the 2 numbers if 'H' is key on node A.) Otherwise (publish bye if 'B' is keyed on node A).
However i encounter problems as i am unsure if a topic can publish both string and integer on node C.