Advertisement
psi_mmobile

Untitled

Mar 18th, 2020
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.86 KB | None | 0 0
  1. Hello,
  2.  
  3.  
  4.  
  5. Since Nikola is on a holiday I am answering this email for him.
  6.  
  7. Here is an example of the limit of the characters that can be read from a single json.
  8.  
  9. If a the yellow 111111 is deleted the lines are 26 otherwise the lines are 24. The JSON string after the character limit is ignored.
  10.  
  11.  
  12.  
  13. select j.*
  14.  
  15. from json_table( '{
  16.  
  17. "BLETest":
  18.  
  19. [{
  20.  
  21. "name": "Employee",
  22.  
  23. "description": "Test Bluetooth Scan",
  24.  
  25. "nbrscan": 2,
  26.  
  27. "starttime": "31-07-2018 23:12:02",
  28.  
  29. "scanperiodicity": 20,
  30.  
  31. "scanduration": 15,
  32.  
  33. "phoneidentifier": "undefined",
  34.  
  35. "phonebrand": "Lenovo",
  36.  
  37. "phonemodel": "P2",
  38.  
  39. "requestedgpsaccuracy": "98" ,
  40.  
  41.  
  42.  
  43. "BLEScanList":
  44.  
  45. [
  46.  
  47. { "startwgs84longitude":"12.3456",
  48.  
  49. "startwgs84latitude":"23.45678",
  50.  
  51. "startgpsaccuracy":"23",
  52.  
  53. "starttime":"06-07-2018 09:20:09",
  54.  
  55. "stopwgs84longitude":"undefined",
  56.  
  57. "stopwgs84latitude":"undefined",
  58.  
  59. "stopgpsaccuracy":"undefined",
  60.  
  61. "stoptime":"05-07-2017 09:20:29",
  62.  
  63. "phonebatterylevel":77,
  64.  
  65.  
  66.  
  67. "BLEScanObjectList":[
  68.  
  69. {"name":"BPUCK ID 000020","id":"C3:5E:45:15:70:C2","advertising":{},"rssi":-65111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111},
  70.  
  71. {"id":"60:F8:1D:BA:E0:43","advertising":{},"rssi":-71},
  72.  
  73. {"name":"BPUCK ID 000015","id":"E8:3D:8F:B3:40:05","advertising":{},"rssi":-81},
  74.  
  75. {"id":"F2:69:DC:5B:0B:17","advertising":{},"rssi":-70},
  76.  
  77. {"name":"BPUCK ID 00002B","id":"DA:09:32:B9:87:D3","advertising":{},"rssi":-75},
  78.  
  79. {"name":"BPUCK ID 00002D","id":"F9:45:D5:B1:6A:DD","advertising":{},"rssi":-67},
  80.  
  81. {"id":"1D:F0:2A:48:28:1B","advertising":{},"rssi":-65},
  82.  
  83. {"id":"07:C9:58:F2:32:EE","advertising":{},"rssi":-84},
  84.  
  85. {"id":"2E:0C:91:FE:3D:C2","advertising":{},"rssi":-88},
  86.  
  87. {"id":"2C:6B:0B:19:0A:27","advertising":{},"rssi":-91},
  88.  
  89. {"id":"F1:61:22:84:29:12","advertising":{},"rssi":-92},
  90.  
  91. {"id":"46:83:6B:62:22:1F","advertising":{},"rssi":-100},
  92.  
  93. {"id":"4F:8F:8A:6E:52:49","advertising":{},"rssi":-82},
  94.  
  95. {"id":"DA:C3:C4:13:0E:28","advertising":{},"rssi":-74},
  96.  
  97. {"id":"01:25:24:3C:4A:7E","advertising":{},"rssi":-88},
  98.  
  99. {"id":"78:4F:43:84:B3:67","advertising":{},"rssi":-87},
  100.  
  101. {"id":"F1:68:DB:5A:0A:16","advertising":{},"rssi":-86},
  102.  
  103. {"id":"E8:3F:3E:EF:F4:DA","advertising":{},"rssi":-83},
  104.  
  105. {"id":"75:22:49:36:A8:D8","advertising":{},"rssi":-70},
  106.  
  107. {"id":"1A:D5:86:5B:95:D4","advertising":{},"rssi":-90},
  108.  
  109. {"id":"EF:5F:20:82:27:10","advertising":{},"rssi":-89},
  110.  
  111. {"id":"E1:A4:21:BF:DD:9C","advertising":{},"rssi":-89},
  112.  
  113. {"id":"26:A7:91:D8:58:02","advertising":{},"rssi":-97},
  114.  
  115. {"id":"5D:5A:9E:49:15:AA","advertising":{},"rssi":-79},
  116.  
  117. {"id":"F3:6A:DD:5C:0C:18","advertising":{},"rssi":-88},
  118.  
  119. {"id":"D0:99:26:A7:F7:EB","advertising":{},"rssi":-77},
  120.  
  121. {"id":"D0:A0:DF:7D:D8:EF","advertising":{},"rssi":-85},
  122.  
  123. {"id":"E3:A6:23:C1:DF:9E","advertising":{},"rssi":-84},
  124.  
  125. {"id":"F2:62:23:85:2A:13","advertising":{},"rssi":-70},
  126.  
  127. {"id":"EF:66:D9:58:08:14","advertising":{},"rssi":-81},
  128.  
  129. {"name":"BPUCK ID 00002A","id":"DD:B9:75:55:D5:2A","advertising":{},"rssi":-79},
  130.  
  131. {"name":"BPUCK ID 00001D","id":"DF:35:EE:8B:6F:79","advertising":{},"rssi":-73},
  132.  
  133. {"id":"D7:C0:C1:10:0B:25","advertising":{},"rssi":-81},
  134.  
  135. {"id":"D9:C2:C3:12:0D:27","advertising":{},"rssi":-88},
  136.  
  137. {"name":"BPUCK ID 000018","id":"FB:4A:F8:90:71:BD","advertising":{},"rssi":-73},
  138.  
  139. {"name":"BPUCK ID 000013","id":"C4:75:F6:49:97:82","advertising":{},"rssi":-71},
  140.  
  141. {"name":"BPUCK ID 000010","id":"E6:31:30:F3:F0:1B","advertising":{},"rssi":-72}
  142.  
  143.  
  144.  
  145. ]
  146.  
  147. },
  148.  
  149. { "startwgs84longitude":"00.000123",
  150.  
  151. "startwgs84latitude":"undefined",
  152.  
  153. "startgpsaccuracy":"undefined",
  154.  
  155. "starttime":"52-07-2018 09:20:08",
  156.  
  157. "stopwgs84longitude":"undefined",
  158.  
  159. "stopwgs84latitude":"54.64323",
  160.  
  161. "stopgpsaccuracy":"undefined",
  162.  
  163. "stoptime":"06-07-2018 09:20:29",
  164.  
  165. "phonebatterylevel":98,
  166.  
  167.  
  168.  
  169. "BLEScanObjectList":[
  170.  
  171. {"name":"BPUCK ID 000020","id":"C3:5E:45:15:70:C2","advertising":{},"rssi":-100}
  172.  
  173.  
  174.  
  175. ]
  176.  
  177. }
  178.  
  179. ]
  180.  
  181. }
  182.  
  183. ]
  184.  
  185. }', '$.BLETest[*]'
  186.  
  187. columns (
  188.  
  189. name varchar2(50 byte) path '$.name',
  190.  
  191. description varchar2(500 byte) path '$.description',
  192.  
  193. nbr_scan number(10,0) path '$.nbrscan',
  194.  
  195. start_time varchar2 path '$.starttime',
  196.  
  197. scan_periodicity number(10,0) path '$.scanperiodicity',
  198.  
  199. scan_duration number(10,5) path '$.scanduration',
  200.  
  201. phone_identifier varchar2(200 byte) path '$.phoneidentifier',
  202.  
  203. phone_brand varchar2(50 byte) path '$.phonebrand',
  204.  
  205. phone_model varchar2(50 byte) path '$.phonemodel',
  206.  
  207. requested_gps_accuracy number(10,0) path '$.requestedgpsaccuracy',
  208.  
  209. nested path '$.BLEScanList[*]'
  210.  
  211. columns (
  212.  
  213. start_wgs84_longitude number(10,5) path '$.startwgs84longitude',
  214.  
  215. start_wgs84_latitude number(10,5) path '$.startwgs84latitude',
  216.  
  217. start_gps_accuracy number(10,0) path '$.startgpsaccuracy',
  218.  
  219. scan_start_time varchar2 path '$.starttime',
  220.  
  221. stop_wgs84_longitude number(10,5) path '$.stopwgs84longitude',
  222.  
  223. stop_wgs84_latitude number(10,5) path '$.stopwgs84latitude',
  224.  
  225. stop_gps_accuracy number(10,0) path '$.stopgpsaccuracy',
  226.  
  227. stop_time varchar2 path '$.stoptime',
  228.  
  229. phone_battery_level number(10,0) path '$.phonebatterylevel',
  230.  
  231. nested path '$.BLEScanObjectList[*]'
  232.  
  233. columns (
  234.  
  235. mac varchar2(20 byte) path '$.id',
  236.  
  237. device_name varchar2(200 byte) path '$.name',
  238.  
  239. rssi number(15,5) path '$.rssi'
  240.  
  241. )
  242.  
  243. )
  244.  
  245. )
  246.  
  247. ) j;
  248.  
  249.  
  250.  
  251.  
  252.  
  253. Regards,
  254.  
  255. Yordan
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement