MQQTT sim800L thingspeak

 but i just not understand this?

const char * MQTTHost = “mqtt.thingspeak-com”; //OK
const char * MQTTPort = “1883”; //OK
const char * MQTTClientID = “1234321”; //OK
const char * MQTTTopic = “SENSOR”; //OK
//const char * MQTTTopic2 = “SampleTopic2”;
const char * MQTTProtocolName = “GAS_MONITORING”; //OK
const char MQTTLVL = 0x03; // ?
const char MQTTFlags = 0xC2;// ?
const unsigned int MQTTKeepAlive = 60; // ?
const char * MQTTUsername = “kfuhqble”; //OK
const char * MQTTPassword = “ouEFAawozlRf”;//OK
const char MQTTQOS = 0x00; // ?
const char MQTTPacketID = 0x0001; // ?

code by Ravi Pujar
https:\bitbucket-org/mbari_peter/sim800-mqtt-ravi/src/master/

https:\www.youtube-com/watch?v=5FbafyVvN3E&lc=z23lxjvzwl3aj1fl2acdp4322b3jlkz2xwanwbxez0pw03c010c.1571647948727100

this is wrong, its MQTT or MQIsdp. They are standard values

oh…ok
how about the others?

edit:i set like this.
const char * __APN = “internet”;
const char * __usrnm = “”;
const char * __password = “”;

unsigned int Counter = 0;
unsigned long datalength, checksum, rLength;
unsigned short topiclength;
unsigned short topiclength2;
unsigned char topic[30];
char str[250];
unsigned char encodedByte;
int X;

unsigned short MQTTProtocolNameLength;
unsigned short MQTTClientIDLength;
unsigned short MQTTUsernameLength;
unsigned short MQTTPasswordLength;
unsigned short MQTTTopicLength;

const char * MQTTHost = “io.adafruit-com”;
const char * MQTTPort = “1883”;
const char * MQTTClientID = “6edc50be591d431083d41856e6022645”;
const char * MQTTTopic = “GAS_MONITORING”;
const char * MQTTTopic2 = “SampleTopic2”;
const char * MQTTProtocolName = “MQTT”;
const char MQTTLVL = 0x03;
const char MQTTFlags = 0xC2;
const unsigned int MQTTKeepAlive = 60;
const char * MQTTUsername = “gunaon3”;
const char * MQTTPassword = “”;
const char MQTTQOS = 0x00;
const char MQTTPacketID = 0x0001;

Looks ok. Hope you are entering password in real code. Check the MQTTHost value spelling of adafruit domain