翻译 9 PUBLICATION INFORMATION Contact/Phone Number: K. Tress (248) 512-2442 Alternate Contact/Phone Number: J.M. Szotek/ (248) 576-7442 Department Name & Department Number/Tech Club/Organization: Organic Materials Engineering, Dept 5840 Date Standard Originally Published: 2005-04-22 Date Published: 2016-01-18 Change Notice: Description of Change: - 1.2 Add friction values - 2.0 Include process change requirements - 2.2 Define mechanical cleaning restrictions - 2.6.2 Define applicator approval cyclic test requirements - 3.0 Clarify friction testing for all markets - 3.1 Define friction test requirements - 4.0 Add Quality references for EMEA - 8.0 Update EASL} - Editorial and Corporate Identity update
时间: 2024-02-26 12:54:38 浏览: 401
出版信息:联系人/电话号码:K. Tress(248)512-2442,备用联系人/电话号码:J.M. Szotek /(248)576-7442,部门名称和部门编号/技术俱乐部/组织:有机材料工程,部门5840,标准发布日期:2005-04-22,发布日期:2016-01-18,变更通知:变更描述:-1.2添加摩擦系数值,-2.0包括工艺变更要求,-2.2定义机械清洗限制,-2.6.2定义涂布剂批准循环测试要求,-3.0澄清所有市场的摩擦测试,-3.1定义摩擦测试要求,-4.0为EMEA添加质量参考,-8.0更新EASL} -编辑和公司身份更新。
相关问题
查询以下文献的GB/T 7713.1-2006的标准格式,包含期、卷和起止页码: SHI J, DU J, SHEN Y, et al. DRL-Based V2V Computation Offloading for Blockchain-Enabled Vehicular Networks [J]. IEEE Transactions on Mobile Computing, 2022, doi: 10.1109/TMC.2022.3153346.
Shi, J., Du, J., Shen, Y., et al. (2022). DRL-Based V2V Computation Offloading for Blockchain-Enabled Vehicular Networks. IEEE Transactions on Mobile Computing. Advance online publication. doi: 10.1109/TMC.2022.3153346. (GB/T 7713.1-2006 标准格式)
linux使用C语言,通过MQTT发送以下JSON字符:"ts": "2023-3-27 19:50:0", "d": [ { "tag": "MSTM", "value": "2023-3-27 19:50:0" }, { "tag": "VT", " value": 12.34 }, { "tag": "SPPRWL11", "value": 102.29 },
好的,您可以使用 Eclipse Paho MQTT C 客户端库来实现在 Linux 下通过 C 语言发送 MQTT 消息。以下是一个简单的示例代码,用于创建 JSON 字符串并将其发布到 MQTT 主题中:
```c
#include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include "MQTTClient.h"
#include "cJSON.h"
#define ADDRESS "tcp://localhost:1883"
#define CLIENTID "ExampleClientPub"
#define TOPIC "test"
#define QOS 1
#define TIMEOUT 10000L
int main(int argc, char* argv[])
{
MQTTClient client;
MQTTClient_connectOptions conn_opts = MQTTClient_connectOptions_initializer;
char* payload = NULL;
int rc;
cJSON *root = cJSON_CreateObject();
cJSON *data = cJSON_CreateArray();
cJSON *item1 = cJSON_CreateObject();
cJSON *item2 = cJSON_CreateObject();
cJSON *item3 = cJSON_CreateObject();
cJSON_AddStringToObject(root, "ts", "2023-3-27 19:50:0");
cJSON_AddItemToArray(data, item1);
cJSON_AddItemToArray(data, item2);
cJSON_AddItemToArray(data, item3);
cJSON_AddStringToObject(item1, "tag", "MSTM");
cJSON_AddStringToObject(item1, "value", "2023-3-27 19:50:0");
cJSON_AddStringToObject(item2, "tag", "VT");
cJSON_AddNumberToObject(item2, "value", 12.34);
cJSON_AddStringToObject(item3, "tag", "SPPRWL11");
cJSON_AddNumberToObject(item3, "value", 102.29);
payload = cJSON_PrintUnformatted(root);
MQTTClient_create(&client, ADDRESS, CLIENTID, MQTTCLIENT_PERSISTENCE_NONE, NULL);
conn_opts.keepAliveInterval = 20;
conn_opts.cleansession = 1;
if ((rc = MQTTClient_connect(client, &conn_opts)) != MQTTCLIENT_SUCCESS)
{
printf("Failed to connect, return code %d\n", rc);
exit(-1);
}
MQTTClient_message pubmsg = MQTTClient_message_initializer;
pubmsg.payload = payload;
pubmsg.payloadlen = strlen(payload);
pubmsg.qos = QOS;
pubmsg.retained = 0;
MQTTClient_deliveryToken token;
MQTTClient_publishMessage(client, TOPIC, &pubmsg, &token);
printf("Waiting for publication of %s\n"
"on topic %s for client with ClientID: %s\n",
payload, TOPIC, CLIENTID);
rc = MQTTClient_waitForCompletion(client, token, TIMEOUT);
printf("Message with delivery token %d delivered\n", token);
MQTTClient_disconnect(client, 10000);
MQTTClient_destroy(&client);
cJSON_Delete(root);
free(payload);
return rc;
}
```
这个程序使用 cJSON 库来创建 JSON 字符串,并使用 Eclipse Paho MQTT C 客户端库来连接到 MQTT 代理服务器并将消息发布到主题中。您需要在代码中更改 `ADDRESS`、`CLIENTID` 和 `TOPIC` 来适应您的实际情况。当您运行程序时,它将在终端输出消息发布的结果。
阅读全文