[Solved] Is there anyway we could use the data from rfid to fetch something from another website? [closed]


You need to have some kind of storage on your backend side, which will map RFID IDs to some website.

Then you could redirrect user to that website with HTTP codes 301 or 302.

Here is a pseudocede example for client and server:

# Client
rfid_id = get_rfid_id()
make_request_to_server(rfid_id)

# Server
storage = {
    '12345': 'http://google.com',
    '32548': 'http://ebay.com',
}

def on_new_request(rfid_id):
    if rfid_id not in storage:
        response_with_error('Unknown RFID ID')

    else:
        redirrect_to_url(storage[rfid_id])

3

solved Is there anyway we could use the data from rfid to fetch something from another website? [closed]