# device_message **Repository Path**: cy0805851985/device_message ## Basic Information - **Project Name**: device_message - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: develop - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-01 - **Last Updated**: 2025-03-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Device Message Device Communication #### License mit 发生给你的数据采用POST方式提交,样例如下: POST http://192.168.0.105:5000/work_order content-type: application/json { "work_order":"WO-25-00001", "custom_operator": "zhangsan", "item_code":"100003-南糯紫-12GB+1TB-1", "item_name":"南糯紫-12GB+1TB-1", "qty":"10", "items":[ {"item_code":"ITEM-00001","qty":"1"}, {"item_code":"ITEM-00002","qty":"2"}, {"item_code":"ITEM-00003","qty":"2"}, {"item_code":"ITEM-00004","qty":"2"}, ...... ] } 传回来的数据要采用PUT方式提交,且工单号在URL中,样例如下,另外Authorization: token 211c17f2e8ff8be:88decc468ec0145 一旦设置值是不会发生变化的,除非修改了 PUT http://192.168.3.200:8083/api/method/Work Order/WO-25-00001 content-type: application/json Authorization: token 211c17f2e8ff8be:88decc468ec0145 { "custom_operator":"zhangsan", "custom_items": [{ "item_code":"500100", "item_name":"样例1", "operator_time":"10", "torque_value":"10", "is_qualified":"1" }, { "item_code":"52500502", "item_name":"样例2", "operator_time":"20", "torque_value":"10", "is_qualified":"0" } ] }