File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
features/cellular/framework/API Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -381,6 +381,30 @@ class CellularNetwork : public NetworkInterface
381
381
* @return NSAPI_ERROR_OK on success, negative error code on failure
382
382
*/
383
383
virtual nsapi_error_t get_operator_params (int &format, operator_t &operator_params) = 0;
384
+
385
+ /* * Register callback for status reporting
386
+ *
387
+ * The specified status callback function will be called on status changes
388
+ * on the network. The parameters on the callback are the event type and
389
+ * event-type dependent reason parameter.
390
+ *
391
+ * @param status_cb The callback for status changes
392
+ */
393
+ virtual void attach (mbed::Callback<void (nsapi_event_t , intptr_t )> status_cb) = 0;
394
+
395
+ /* * Get the connection status
396
+ *
397
+ * @return The connection status according to ConnectionStatusType
398
+ */
399
+ virtual nsapi_connection_status_t get_connection_status () const = 0;
400
+
401
+ /* * Set blocking status of connect() which by default should be blocking
402
+ *
403
+ * @param blocking true if connect is blocking
404
+ * @return 0 on success, negative error code on failure
405
+ */
406
+ virtual nsapi_error_t set_blocking (bool blocking) = 0;
407
+
384
408
};
385
409
386
410
} // namespace mbed
You can’t perform that action at this time.
0 commit comments