hi everyone,
please can guide me how can master send message multiple slaves using rs 485 non blocking library nick gammon.
here link
http://www.gammon.com.au/forum/?id=11428
as trying understand code unable find variable define slave want send message. in blocking code message includes i.e
both blocking , non blocking libraries in above link,
please can guide me how can master send message multiple slaves using rs 485 non blocking library nick gammon.
here link
http://www.gammon.com.au/forum/?id=11428
as trying understand code unable find variable define slave want send message. in blocking code message includes i.e
both blocking , non blocking libraries in above link,
quote
byte msg [] = {please me.
1, // device 1 (slave) address
3 // turn light on command received
};
code: [select]
// assemble message
byte msg [] = {
1, // device 1
2, // turn light on
level // level
};
the first byte of message says slave supposed deal message. there 2 ways send messages multiple slaves, depending on whether multiple means o more one.
if means all, decide slave number means all, , send message number. each slave programmed react own number , 1 means all.
if means more 1 (but not all), send multiple messages, each specific slave.
Arduino Forum > Using Arduino > Programming Questions > RS 485 Non Blocking Library Nick Gammon
arduino
Comments
Post a Comment