Revision 0e9bde83 include/cloud_helper.h

View differences:

include/cloud_helper.h
50 50
int get_from_cloud(struct cloud_helper_context *context, char *key, uint8_t *header_ptr, int header_size);
51 51

  
52 52
/**
53
 * @brief Returns the timestamp associated to the last GET operation.
54
 * Returns the timestamp associated to the last GET operation or NULL.
55
 * @param[in] context The contex representing the desired cloud_helper instance.
56
 * @return timestamp ot NULL
57
 */
58
time_t timestamp_cloud(struct cloud_helper_context *context);
59

  
60
/**
53 61
 * @brief Put on the cloud the value for a specified key.
54 62
 * This function transparently handles the sending routines.
55 63
 * @param[in] context The contex representing the desired cloud_helper instance.
......
61 69
int put_on_cloud(struct cloud_helper_context *context, char *key, uint8_t *buffer_ptr, int buffer_size);
62 70

  
63 71
/**
64
 * @brief Returns the nodeID identifing the cloud
65
 * This function transparently handles the identification of the cloud node.
72
 * @brief Returns the nodeID identifing the cloud for the specified variant.
73
 * This function transparently handles the identification of the cloud
74
 * node. Thanks to the variant parameter is possible to recover
75
 * nodeIDs which differ wrt to nodeid_equal, but are equal wrt to is_cloud_node.
66 76
 * @param[in] context The contex representing the desired cloud_helper instance.
77
 * @param[in] variant The variant number for this nodeID.
67 78
 * @return nodeID identifying the cloud.
68 79
 */
69
struct nodeID* get_cloud_node(struct cloud_helper_context *context);
80
struct nodeID* get_cloud_node(struct cloud_helper_context *context, uint8_t variant);
70 81

  
71 82
/**
72 83
 * @brief Check if the specified node references the cloud

Also available in: Unified diff