Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Pubnub_c_core_mbed2_pal
Fork of Pubnub_mbed2_sync by
pubnub_sync.h
- Committer:
- sveljko
- Date:
- 2016-11-10
- Revision:
- 0:243e0d70a1d5
- Child:
- 2:4d49720c7200
File content as of revision 0:243e0d70a1d5:
/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */
#if !defined INC_PUBNUB_MBED_SYNC
#define INC_PUBNUB_MBED_SYNC
/** @mainpage The MBed Pubnub client library - sync interface
This is the "sync" interface of the Pubnub client library for
MBed.
The "sync" interface has these characteristics:
- There is no "callback" on the end of a transaction. Instead,
you should check (via pubnub_last_result()) to see if the
transaction completed, or if you don't need to do anything
else on the thread until the transaction is completed (including
possible thread shutdown), you can call pubnub_await() which
will do it for you (and return the final result).
You can have multiple pubnub contexts established; in each
context, at most one Pubnub API call/transaction may be ongoing
(typically a "publish" or a "subscribe").
*/
/** @file pubnub_sync.h */
#include "pubnub_config.h"
/* -- You should not change anything below this line -- */
#include "pubnub_alloc.h"
#include "pubnub_assert.h"
#include "pubnub_coreapi.h"
#include "pubnub_ntf_sync.h"
//#include "pubnub_generate_uuid.h"
#include "pubnub_blocking_io.h"
#endif /* !defined INC_PUBNUB_MBED_SYNC */
