pump_product_model.json 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. {
  2. "schema":"https://iotx-tsl.oss-ap-southeast-1.aliyuncs.com/schema.json",
  3. "profile":{
  4. "productKey":"a19yWoc0Glx"
  5. },
  6. "services":[
  7. {
  8. "outputData":[
  9. ],
  10. "identifier":"set",
  11. "inputData":[
  12. {
  13. "identifier":"Price",
  14. "dataType":{
  15. "specs":{
  16. "length":"2048"
  17. },
  18. "type":"text"
  19. },
  20. "name":"Price"
  21. },
  22. {
  23. "identifier":"FuelProductName",
  24. "dataType":{
  25. "specs":{
  26. "length":"2048"
  27. },
  28. "type":"text"
  29. },
  30. "name":"FuelProductName"
  31. }
  32. ],
  33. "method":"thing.service.property.set",
  34. "name":"set",
  35. "required":true,
  36. "callType":"async",
  37. "desc":"属性设置"
  38. },
  39. {
  40. "outputData":[
  41. {
  42. "identifier":"Price",
  43. "dataType":{
  44. "specs":{
  45. "length":"2048"
  46. },
  47. "type":"text"
  48. },
  49. "name":"Price"
  50. },
  51. {
  52. "identifier":"LastSaleAmt",
  53. "dataType":{
  54. "specs":{
  55. "length":"2048"
  56. },
  57. "type":"text"
  58. },
  59. "name":"LastSaleAmt"
  60. },
  61. {
  62. "identifier":"LastSaleVol",
  63. "dataType":{
  64. "specs":{
  65. "length":"2048"
  66. },
  67. "type":"text"
  68. },
  69. "name":"LastSaleVol"
  70. },
  71. {
  72. "identifier":"CurSaleAmt",
  73. "dataType":{
  74. "specs":{
  75. "length":"2048"
  76. },
  77. "type":"text"
  78. },
  79. "name":"CurSaleAmt"
  80. },
  81. {
  82. "identifier":"CurSaleVol",
  83. "dataType":{
  84. "specs":{
  85. "length":"2048"
  86. },
  87. "type":"text"
  88. },
  89. "name":"CurSaleVol"
  90. },
  91. {
  92. "identifier":"FuelProductName",
  93. "dataType":{
  94. "specs":{
  95. "length":"2048"
  96. },
  97. "type":"text"
  98. },
  99. "name":"FuelProductName"
  100. },
  101. {
  102. "identifier":"CurState",
  103. "dataType":{
  104. "specs":{
  105. "length":"2048"
  106. },
  107. "type":"text"
  108. },
  109. "name":"CurState"
  110. }
  111. ],
  112. "identifier":"get",
  113. "inputData":[
  114. "Price",
  115. "LastSaleAmt",
  116. "LastSaleVol",
  117. "CurSaleAmt",
  118. "CurSaleVol",
  119. "FuelProductName",
  120. "CurState"
  121. ],
  122. "method":"thing.service.property.get",
  123. "name":"get",
  124. "required":true,
  125. "callType":"async",
  126. "desc":"属性获取"
  127. },
  128. {
  129. "outputData":[
  130. {
  131. "identifier":"AuthResult",
  132. "dataType":{
  133. "specs":{
  134. "length":"2048"
  135. },
  136. "type":"text"
  137. },
  138. "name":"AuthResult"
  139. }
  140. ],
  141. "identifier":"AuthPump",
  142. "inputData":[
  143. {
  144. "identifier":"Amt",
  145. "dataType":{
  146. "specs":{
  147. "min":"0",
  148. "max":"999999",
  149. "step":"0.001"
  150. },
  151. "type":"double"
  152. },
  153. "name":"Amt"
  154. },
  155. {
  156. "identifier":"Vol",
  157. "dataType":{
  158. "specs":{
  159. "min":"0",
  160. "max":"999999",
  161. "step":"0.001"
  162. },
  163. "type":"double"
  164. },
  165. "name":"Vol"
  166. }
  167. ],
  168. "method":"thing.service.AuthPump",
  169. "name":"AuthPump",
  170. "required":false,
  171. "callType":"async"
  172. }
  173. ],
  174. "properties":[
  175. {
  176. "identifier":"Price",
  177. "dataType":{
  178. "specs":{
  179. "length":"2048"
  180. },
  181. "type":"text"
  182. },
  183. "name":"Price",
  184. "accessMode":"rw",
  185. "required":false,
  186. "desc":"fuel product price of this fuel point"
  187. },
  188. {
  189. "identifier":"LastSaleAmt",
  190. "dataType":{
  191. "specs":{
  192. "length":"2048"
  193. },
  194. "type":"text"
  195. },
  196. "name":"LastSaleAmt",
  197. "accessMode":"r",
  198. "required":false
  199. },
  200. {
  201. "identifier":"LastSaleVol",
  202. "dataType":{
  203. "specs":{
  204. "length":"2048"
  205. },
  206. "type":"text"
  207. },
  208. "name":"LastSaleVol",
  209. "accessMode":"r",
  210. "required":false
  211. },
  212. {
  213. "identifier":"CurSaleAmt",
  214. "dataType":{
  215. "specs":{
  216. "length":"2048"
  217. },
  218. "type":"text"
  219. },
  220. "name":"CurSaleAmt",
  221. "accessMode":"r",
  222. "required":false
  223. },
  224. {
  225. "identifier":"CurSaleVol",
  226. "dataType":{
  227. "specs":{
  228. "length":"2048"
  229. },
  230. "type":"text"
  231. },
  232. "name":"CurSaleVol",
  233. "accessMode":"r",
  234. "required":false
  235. },
  236. {
  237. "identifier":"FuelProductName",
  238. "dataType":{
  239. "specs":{
  240. "length":"2048"
  241. },
  242. "type":"text"
  243. },
  244. "name":"FuelProductName",
  245. "accessMode":"rw",
  246. "required":false
  247. },
  248. {
  249. "identifier":"CurState",
  250. "dataType":{
  251. "specs":{
  252. "length":"2048"
  253. },
  254. "type":"text"
  255. },
  256. "name":"CurState",
  257. "accessMode":"r",
  258. "required":false
  259. }
  260. ],
  261. "events":[
  262. {
  263. "outputData":[
  264. {
  265. "identifier":"Price",
  266. "dataType":{
  267. "specs":{
  268. "length":"2048"
  269. },
  270. "type":"text"
  271. },
  272. "name":"Price"
  273. },
  274. {
  275. "identifier":"LastSaleAmt",
  276. "dataType":{
  277. "specs":{
  278. "length":"2048"
  279. },
  280. "type":"text"
  281. },
  282. "name":"LastSaleAmt"
  283. },
  284. {
  285. "identifier":"LastSaleVol",
  286. "dataType":{
  287. "specs":{
  288. "length":"2048"
  289. },
  290. "type":"text"
  291. },
  292. "name":"LastSaleVol"
  293. },
  294. {
  295. "identifier":"CurSaleAmt",
  296. "dataType":{
  297. "specs":{
  298. "length":"2048"
  299. },
  300. "type":"text"
  301. },
  302. "name":"CurSaleAmt"
  303. },
  304. {
  305. "identifier":"CurSaleVol",
  306. "dataType":{
  307. "specs":{
  308. "length":"2048"
  309. },
  310. "type":"text"
  311. },
  312. "name":"CurSaleVol"
  313. },
  314. {
  315. "identifier":"FuelProductName",
  316. "dataType":{
  317. "specs":{
  318. "length":"2048"
  319. },
  320. "type":"text"
  321. },
  322. "name":"FuelProductName"
  323. },
  324. {
  325. "identifier":"CurState",
  326. "dataType":{
  327. "specs":{
  328. "length":"2048"
  329. },
  330. "type":"text"
  331. },
  332. "name":"CurState"
  333. }
  334. ],
  335. "identifier":"post",
  336. "method":"thing.event.property.post",
  337. "name":"post",
  338. "type":"info",
  339. "required":true,
  340. "desc":"属性上报"
  341. }
  342. ]
  343. }