File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
samples/net/mqtt_sn_publisher Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ CONFIG_NET_UDP=y
4
4
CONFIG_NET_IPV4=y
5
5
CONFIG_NET_IPV6=n
6
6
CONFIG_NET_SOCKETS=y
7
- CONFIG_POSIX_API=y
8
7
CONFIG_ZVFS_OPEN_MAX=6
9
8
CONFIG_NET_CONNECTION_MANAGER=y
10
9
Original file line number Diff line number Diff line change @@ -131,7 +131,8 @@ static void process_thread(void)
131
131
LOG_DBG ("Parsing Broadcast IP " CONFIG_NET_SAMPLE_MQTT_SN_BROADCAST_IP );
132
132
bcaddr .sin_family = AF_INET ;
133
133
bcaddr .sin_port = htons (CONFIG_NET_SAMPLE_MQTT_SN_BROADCAST_PORT );
134
- err = inet_pton (AF_INET , CONFIG_NET_SAMPLE_MQTT_SN_BROADCAST_IP , & bcaddr .sin_addr );
134
+ err = zsock_inet_pton (AF_INET , CONFIG_NET_SAMPLE_MQTT_SN_BROADCAST_IP ,
135
+ & bcaddr .sin_addr );
135
136
__ASSERT (err == 1 , "inet_pton() failed %d" , err );
136
137
137
138
LOG_INF ("Waiting for connection..." );
@@ -152,7 +153,7 @@ static void process_thread(void)
152
153
LOG_DBG ("Parsing Broadcast IP %s" , SAMPLE_GW_IP );
153
154
gwaddr .sin_family = AF_INET ;
154
155
gwaddr .sin_port = htons (CONFIG_NET_SAMPLE_MQTT_SN_GATEWAY_PORT );
155
- err = inet_pton (AF_INET , SAMPLE_GW_IP , & gwaddr .sin_addr );
156
+ err = zsock_inet_pton (AF_INET , SAMPLE_GW_IP , & gwaddr .sin_addr );
156
157
__ASSERT (err == 1 , "inet_pton() failed %d" , err );
157
158
struct mqtt_sn_data gwaddr_data = {.data = (uint8_t * )& bcaddr ,
158
159
.size = sizeof (struct sockaddr )};
You can’t perform that action at this time.
0 commit comments