Skip to content

Commit

Permalink
test(sample): change condition in publish via post sample
Browse files Browse the repository at this point in the history
  • Loading branch information
parfeon committed Nov 25, 2024
1 parent 9dc1252 commit e5f1027
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/samples/pubnub_publish_via_post_sample.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,15 @@ int main()
if (NULL == my_env_subscribe_key) { my_env_subscribe_key = "demo"; }
if (NULL == my_env_secret_key) { my_env_secret_key = "demo"; }
if (NULL == my_env_origin) { my_env_origin = "ps.pndsn.com"; }
if (NULL == my_env_ipv6_connectivity) { my_env_ipv6_connectivity = "0"; }
printf("%s\n%s\n%s\n",my_env_publish_key,my_env_subscribe_key,my_env_secret_key);

pubnub_init(pbp, my_env_publish_key, my_env_subscribe_key);
pubnub_set_user_id(pbp, user_id);
pubnub_origin_set(pbp, my_env_origin);
#if PUBNUB_USE_IPV6
// Enable IPv6 connectivity.
if (NULL != my_env_ipv6_connectivity) {
if (0 == strcmp(my_env_ipv6_connectivity, "1")) {
pubnub_set_ipv6_connectivity(pbp);
}
#endif
Expand Down

0 comments on commit e5f1027

Please sign in to comment.