#Aziz777

1 messages ยท Page 1 of 1 (latest)

timid tendonBOT
vagrant lichen
#

Hi there!

#

What is your issue exactly?

lunar pewter
#

Hi

#

when i try to connect to the terminal

#

some of them gives me a null location id

#

i m not sure how i add a terminal or a location id to it

#

as per the sample code, the location id should come from the scanned list from discovery

vagrant lichen
#

as per the sample code
Can you share the doc you are following?

lunar pewter
#

sure

vagrant lichen
#

Is your device turned on and connected to your application? Also can you share the exact code that you wrote and is returning null?

lunar pewter
#

sure

vagrant lichen
#

So this line is returning null? val locationId = reader.location?.id
Can you share how retrieve the reader object?

lunar pewter
#

ok

sour hemlock
#

reader.location is null if the reader hasn't been registered to a location yet, that's normal enough.

lunar pewter
#

yes thats my problem

sour hemlock
lunar pewter
#

where and how do i register a certain reader

sour hemlock
lunar pewter
#

okk

#

so that location ID should be created on the stripe dashboard? correct?

sour hemlock
#

yep, or in the API

lunar pewter
#

ok thannks

#

is there any api available and gets me all the locations i have added?

#

so that user can simply pick a location from the list of locations that is shown

lunar pewter
#

thanks

#

i will try this one out

#

and get back if runs into any issue

#

also, any example for listlocation function?

sour hemlock
#

not that I know of, but it seems straightforward to use

lunar pewter
#

yeah just the params i need

sour hemlock
lunar pewter
#

i wil check

#

i will also need to create a location

#

can you provide me an example of that as well?

sour hemlock
lunar pewter
#

okk

lunar pewter
#

can we create location in android instead of backend?

sour hemlock
#

it's backend only.

zinc iris
#

๐Ÿ‘‹ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!