MkrGSM 1400 receive cloud messages

I am using the arduino MKR GSM 1400 and i am able to send data to hologram using the following sketch.
however sending data from the hologram dash does not appear to be recieved in the serial monitor as i would expect this sketch to do.
what am i missing? Thanks.

Holgoram Adaptation of Arduino's GSM Web Client Example Sketch used to send messages to Hologram's Cloud

Arduino information:

  Web client

 * MKR GSM 1400 board
 * Antenna
 * SIM card with a data plan

 created 8 Mar 2012
 by Tom Igoe

modified 15 May 2017
by Maiky Iberkleid

// libraries
#include <MKRGSM.h>

//We replaced "arduino_secrets.h" as all the information for that is publicly available from

const char PINNUMBER[] = " ";
// APN data
const char GPRS_APN[] = "hologram";
const char GPRS_LOGIN[] = " ";
const char GPRS_PASSWORD[] = " ";
String HOLOGRAM_DEVICE_KEY = "mydevicekey";
String HOLOGRAM_MESSAGE = "Your Message here";

// initialize the library instance
GSMClient client;
GPRS gprs;
GSM gsmAccess;

// Hologram's Embedded API ( URL and port
char server[] = "";
int port = 9999;

void setup() {
  // initialize serial communications and wait for port to open:
  while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB port only

  Serial.println("Starting Arduino web client.");
  // connection state
  boolean connected = false;

  // After starting the modem with GSM.begin()
  // attach to the GPRS network with the APN, login and password
  while (!connected) {
     Serial.println("Begin gsm Access");
    //Serial.println(gsmAccess.begin()); //Uncomment for testing
    if ((gsmAccess.begin() == GSM_READY) &&
      connected = true;
      Serial.println("GSM Access Success");
    else {
      Serial.println("Not connected");


  // if you get a connection, report back via serial:
  if (client.connect(server, port)) {
    // Send a Message request:
    client.println("{\"k\":\"" + HOLOGRAM_DEVICE_KEY +"\",\"d\":\""+ HOLOGRAM_MESSAGE+ "\",\"t\":\""+HOLOGRAM_TOPIC+"\"}");
  } else {
    // if you didn't get a connection to the server:
    Serial.println("connection failed");

void loop() {
  // if there are incoming bytes available
  // from the server, read them and print them:
  if (client.available()) {
    char c =;

  // if the server's disconnected, stop the client:
  if (!client.available() && !client.connected()) {

    // do nothing forevermore:
    for (;;)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.