Waiting for AT COMMAND correct response – Using Arduino

int16_t wait(char* Values, uint16_t timeout) {

uint16_t Length = strlen(Values);

char InputBuffer[Length + 1];
strcpy(InputBuffer, Values);
char CompareBuffer[Length + 1];
memset(CompareBuffer,0,sizeof(CompareBuffer));

uint16_t Quantity = 1;

for (int16_t n = 0; n < Length; n++) {
if (InputBuffer[n] == ‘,’)
Quantity++;
}

char* InputTokens[Quantity];
memset(InputTokens, 0, sizeof(InputTokens));
char* CompareTokens[Quantity];
memset(CompareTokens, 0, sizeof(CompareTokens));

InputTokens[0] = InputBuffer;
CompareTokens[0] = CompareBuffer;

uint16_t TokenPosition = 1;
for (int16_t n = 0; n < Length; n++) {
if (InputBuffer[n] == ‘,’) {
InputBuffer[n] = 0;
InputTokens[TokenPosition] = &InputBuffer[n + 1];
CompareTokens[TokenPosition] = &CompareBuffer[n + 1];
TokenPosition++;
}
}

uint64_t timer = millis();
char c;

while (millis() – timer < timeout) {
while (mySerial.available()) {
c = mySerial.read();
Serial.print(c);

for (int16_t n = 0; n < Quantity; n++) {
Length = strlen(CompareTokens[n]);
if (c == InputTokens[n][Length])
CompareTokens[n][Length] = c;
else
memset(CompareTokens[n], 0, Length);

if (!strcmp(InputTokens[n],CompareTokens[n]))
return n;
}
}
}
return -1;
}

Source: Waiting for AT COMMAND correct response – Using Arduino / Programming Questions – Arduino Forum

Waiting for AT COMMAND correct response – Using Arduino was last modified: June 13th, 2021 by Jovan Stosic

SIM7020C NB-IoT MQTT communication Raspberry Pi 4B – Programmer Sought

The above is an example of Weixue. In my case, the second and fourth items need to be changed
AT+CMQCON=0,3,”myclient”,6000,0,0,”admin”,”password” You need to add admin and password. If you don’t add it, you cannot connect.

Source: SIM7020C NB-IoT MQTT communication Raspberry Pi 4B – Programmer Sought

SIM7020C NB-IoT MQTT communication Raspberry Pi 4B – Programmer Sought was last modified: June 12th, 2021 by Jovan Stosic

Marc-Antoine Charpentier

Marc-Antoine Charpentier (French: [maʁk ɑ̃twan ʃaʁpɑ̃tje]; 1643 – 24 February 1704) was a French Baroque composer during the reign of Louis XIV. One of his most famous works is the main theme from the prelude of his Te Deum, Marche en rondeau. This theme which is still used today as a fanfare during television broadcasts of the Eurovision Network, the European Broadcasting Union. The most relevant broadcast program it transmits is the Eurovision Song Contest.

Marc-Antoine Charpentier dominated the 17th century French music by the extent and power of his production. He approached all genres and his mastery in writing sacred vocal music, above all, was recognized and hailed by his contemporaries.

He began his career by going to Italy, there he fell under the influence of Giacomo Carissimi as well as other Italian composers, perhaps Domenico Mazzocchi. He would remain marked by the Italian style and become the only one with Jean-Joseph Cassanéa de Mondonville in France to approach the oratorio. In 1670, he became a master of music (composer and singer) in the service of the Duchess of Guise. From 1690 Charpentier composed Médée, on a piece by Corneille. It would be a determining failure in his career of composer: he devoted himself henceforth to the religious music. He became the composer of the Carmelites of Rue du Bouloir, Montmartre Abbey, Abbaye-aux-Bois and Port-Royal. In 1698, Charpentier was appointed music master for the children of the Sainte-Chapelle du Palais. After having obtained from the king Louis XIV a softening of Lully‘s monopoly, Molière turned to Charpentier to compose the music for the intermissions of Circe and Andromeda, as well as sung scenes for the revivals of The Forced Marriage, and finally the musical pieces of The Imaginary invalid.

He composed secular works, stage music, operas, cantatas, sonatas, symphonies, as well as sacred music, motets (large or small), oratorios, masses, psalms, Magnificats, Litanies.

At his death, Charpentier’s complete works must have numbered about 800 opus numbers, but today only 28 autograph volumes remain, or more than 500 pieces that he himself took care to classify. This collection, called Mélanges, is one of the most comprehensive sets of musical autograph manuscripts of all time.

https://en.wikipedia.org/wiki/Marc-Antoine_Charpentier

Marc-Antoine Charpentier was last modified: June 5th, 2021 by Jovan Stosic