I thought in python you can concat two strings, I might missing something in my little piece of code:
def create_set(feature, value):
return b'{"type":"set","feature":'+feature+',"value":'+value+'}'
on = create_set("main.power", "on")
I thought in python you can concat two strings, I might missing something in my little piece of code:
def create_set(feature, value):
return b'{"type":"set","feature":'+feature+',"value":'+value+'}'
on = create_set("main.power", "on")