I keep getting the error below. It doesn’t go away even when I delay my requests heavily. I currently have just one request every 30 seconds, but still get an error every 4-6 requests.
{"attn":true,"status":"429","text":"{\"code\":429001,\"message\":\"You sent too many requests per second. Please use a different token or contact us to increase your rate limits.\"}"}
Here is the Notecard part of my python code (formatting gets weird on the post, but the script works fine):
card = notecard.OpenI2C(i2c, 0, 0, debug=True)
req = {“req”: “hub.set”}
req[“product”] = productUID
req[“mode”] = “continuous”
rsp = card.Transaction(req)while True:
led.value(0)
req = {“req”: “card.temp”}
rsp = card.Transaction(req)
temp = rsp[“value”]
req = {“req”: “note.add”}
req[“file”] = “sensors.qo”
req[“sync”] = True
req[“body”] = {“temperature”: temp}
req = card.Transaction(req)
utime.sleep(30)