opentrace-community / opentrace-cloud-functions

OpenTrace Cloud Functions. Reference implementation of the BlueTrace protocol.
https://bluetrace.io
GNU General Public License v3.0
273 stars 121 forks source link

any document about uploaded file format? #31

Open nguyenhuutinh opened 4 years ago

nguyenhuutinh commented 4 years ago

Hi , I can uploaded file to firebase, but don't know why I got message "not found"?

do you have any suggestion?

{"records":[{"id":1,"modelC":"iPhone 6s","modelP":"MI MAX 3","msg":"not_found","org":"OT_HA","rssi":-68,"timestamp":1587447428,"v":2},{"id":2,"modelC":"iPhone 6s","modelP":"MI MAX 3","msg":"not_found","org":"OT_HA","rssi":-52,"timestamp":1587447506,"v":2},{"id":3,"modelC":"iPhone 6s","modelP":"MI MAX 3","msg":"not_found","org":"OT_HA","rssi":-25,"timestamp":1587447541,"v":2},{"id":4,"modelC":"iPhone 6s","modelP":"MI MAX 3","msg":"not_found","org":"OT_HA","rssi":-59,"timestamp":1587447600,"v":2},{"id":5,"modelC":"iPhone 6s","modelP":"MI MAX 3","msg":"not_found","org":"OT_HA","rssi":-33,"timestamp":1587447659,"v":2},{"id":6,"modelC":"iPhone 6s","modelP":"MI MAX 3","msg":"not_found","org":"OT_HA","rssi":-38,"timestamp":1587447720,"v":2},{"id":7,"modelC":"iPhone 6s","modelP":"MI MAX 3","msg":"not_found","org":"OT_HA","rssi":-33,"timestamp":1587447779,"v":2},{"id":8,"modelC":"iPhone 6s","modelP":"MI MAX 3","msg":"not_found","org":"OT_HA","rssi":-38,"timestamp":1587447839,"v":2},{"id":9,"modelC":"iPhone 6s","modelP":"MI MAX 3","msg":"not_found","org":"OT_HA","rssi":-38,"timestamp":1587447902,"v":2},{"id":10,"modelC":"iPhone 6s","modelP":"MI MAX 3","msg":"not_found","org":"OT_HA","rssi":-31,"timestamp":1587447960,"v":2},{"id":11,"modelC":"iPhone 6s","modelP":"MI MAX 3","msg":"not_found","org":"OT_HA","rssi":-34,"timestamp":1587448020,"v":2},{"id":12,"modelC":"iPhone 6s","modelP":"MI MAX 3","msg":"not_found","org":"OT_HA","rssi":-33,"timestamp":1587448082,"v":2},{"id":13,"modelC":"iPhone 6s","modelP":"MI MAX 3","msg":"not_found","org":"OT_HA","rssi":-34,"timestamp":1587448141,"v":2},{"id":14,"modelC":"iPhone 6s","modelP":"MI MAX 3","msg":"not_found","org":"OT_HA","rssi":-49,"timestamp":1587448199,"v":2},{"id":15,"modelC":"iPhone 6s","modelP":"MI MAX 3","msg":"not_found","org":"OT_HA","rssi":-48,"timestamp":1587448259,"v":2}

Hoangtho11188 commented 4 years ago

Anything new on this????? How do we know the phone number of these devices that connect with our device? StreetPassRecord_Xiaomi_Redmi Note 4X_2020-04-27_08-26-10.txt

qtangs commented 4 years ago

We have shared a reference implementation for processUploadedData, you can find the logic here:

https://github.com/opentrace-community/opentrace-cloud-functions/blob/master/functions/src/opentrace/processUploadedData.ts#L90