def do_b(self, line):
index, value_string = self.index_and_value_from_line(line)<EOL>if index and value_string:<EOL><INDENT>if value_string.lower() == '<STR_LIT:true>' or value_string.lower() == '<STR_LIT:false>':<EOL><INDENT>self.application.apply_update(opendnp3.Binary(value_string == '<STR_LIT:true>'), index)<EOL><DEDENT>else:<EOL><INDENT>print('<STR_LIT>')<EOL><DEDENT><DEDENT>
Send the Master a BinaryInput (group 2) value. Command syntax is: 'b index true' or 'b index false