I am getting a ‘KeyError: N’ when I try to run the following code,
CONTROLLER_CONFIG = {
‘ID’: 1986,
‘CE’: 1,
‘NI’: ‘Controller’,
‘AP’: 4
}
def configure_node(**kwargs):
for cmd, value in kwargs.items():
print(cmd, ’ ', value)
xbee.atcmd(cmd, value)
configure_node(**CONTROLLER_CONFIG)
I can run this fine on my computer, but I get the error when trying to run it via XTCU micropython terminal. I am really clueless to what I am doing wrong.