#piyushjain-terminal
1 messages · Page 1 of 1 (latest)
yes actually i have created location
now i want to register device
on that location
but i dont have physical device
i want to test
good question, let me look
okay thaks i am waiting
I believe it can be anything, when you're using the simulated reader.
so just pass "foobar" for example and see if it works.
ok let me try
Invalid param: registration_code, found: foobar, Invalid registration code tokens [foobar]; request-id: req_sLRIEcojU64wne"
throwing error
hmm, I really don't know then
sorry! My guess is you don't even need to register it, that's only for real readers
AFAIK you can always discover and connect to the simulated reader, you don't have to register it at all. That's likely the answer.
okay. got it. but the problem is i am implementing register Device api.
so i am wondering how to test api in case if it success or fail.
it seems i will not able to test sucess scenario
but without test how i can insure it will work in production
good question!
not sure you can without a physical device. For now I'd just wrap the code in a try/catch and report the error if one happens
Thanks