)]}'
{
  "commit": "7a972c02291b9384862c444ef3dc2b1f619ca059",
  "tree": "7b7ea09b575f7afa1db22ab26f8dab0a479c1855",
  "parents": [
    "5dec78bb50198db55ad6597d1f43ff06f79234bc"
  ],
  "author": {
    "name": "Leandro Pereira",
    "email": "leandro.pereira@intel.com",
    "time": "Tue May 30 13:12:46 2017 -0700"
  },
  "committer": {
    "name": "Anas Nashif",
    "email": "nashif@linux.intel.com",
    "time": "Wed May 31 17:16:28 2017 -0400"
  },
  "message": "samples: mqtt_publisher: Try connecting a few times before giving up\n\nWaiting for an NET_EVENT_IF_UP before trying to connect isn\u0027t sufficient\nin some cases; for instance, on devices using the MCUX HAL, such as the\nFRDM-K64F, the interface will have the NET_IF_UP flag set even though\nthe link negotiation didn\u0027t yet complete.\n\nExecuting this sample on such board will produce the following output.\nNotice the \"Enabled 100M...\" message right after trying to connect.\n\n    [dev/eth_mcux] [DBG] eth_0_init: MAC 00:04:9f:6f:91:da\n    net_context_connect error Is the server (broker) up and running?\n    [publisher:247] network_setup: -60 \u003cERROR\u003e\n\n    Bye!  [dev/eth_mcux] [INF] eth_mcux_phy_event: Enabled 100M\n    full-duplex mode.\n\nEven though the returned error is ETIMEDOUT, increasing\nnet_context_connect()\u0027s timeout parameter to several seconds isn\u0027t\nsufficient; other steps performed by network_setup() after the link has\nbeen fully established are necessary.  As a stopgap measure, try\nconnecting a few times before giving up (more than one connection\nattempt should be made by application in most cases, anyway.)\n\nIt might be the case that we need events to monitor ethernet link\n(re)negotation in addition to the NET_IF_UP bit.\n\nJira: ZEP-2036\nSigned-off-by: Leandro Pereira \u003cleandro.pereira@intel.com\u003e\nSigned-off-by: Anas Nashif \u003canas.nashif@intel.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f6c42744346e8aa434507531ab143a2e43a8e106",
      "old_mode": 33188,
      "old_path": "samples/net/mqtt_publisher/src/main.c",
      "new_id": "051849f7d1d1df86ea3d0f3e5c3a420f2a5cde1b",
      "new_mode": 33188,
      "new_path": "samples/net/mqtt_publisher/src/main.c"
    }
  ]
}
