From 0cf6be4cd144b01f91049891388c3cd063f43c9f Mon Sep 17 00:00:00 2001 From: kutayboz Date: Mon, 12 Jun 2023 23:34:37 +0300 Subject: Added stdout information --- src/bg96.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bg96.c') diff --git a/src/bg96.c b/src/bg96.c index 5defe35..1645c54 100644 --- a/src/bg96.c +++ b/src/bg96.c @@ -434,10 +434,10 @@ int mqttPubNetData(char *pathToPort, networkData nD) { msgID = rand() % 65536; cmdStrLen = strlen("AT+QMTPUB=0") + (int)ceil(log10(msgID)) + 1 + 1 + - strlen("kboz/feeds/textInfo") + (int)ceil(log10(msgSize)) + 8; + strlen("kboz/feeds/textinfo") + (int)ceil(log10(msgSize)) + 8; command = realloc(command, sizeof(char) * (cmdStrLen + 1)); snprintf(command, cmdStrLen + 1, "AT+QMTPUB=0,%d,1,0,\"%s\",%d", msgID, - "kboz/feeds/textInfo", msgSize); + "kboz/feeds/textinfo", msgSize); if (0 != querySerialPort(&response, serialPort, command, 15, (char *)-1)) { printf("Error querying publish command: %s\n", command); goto mqttPubError1; -- cgit v1.3