I use those arrays to read the request and send the response, there is no stack
overflow error. I've defined a IP value inside the server file (#define) and
it worked as intended, but I want to be able to read the IP from Kconfig
instead of having it in the server file, I'll be looking for a wa
Hi Stewart,
You are right, there is a mistake regarding pin definitions in the file
boards/arm/stm32l4/nucleo-l432kc/src/stm32_ina226.c. I tried to fix these
pin definitions on PR #10753 but I can't test them. Are you able to test it?
Thanks
Daniel Pereira de Carvalho
Em qua., 20 de set. de 2
On 9/21/2023 6:34 AM, Simon Filgis wrote:
When I started with networking, I set the IP via kconfig. I remember that
it was necessary to enter the same IP at two different places. Netlib and
FTP server in my case. Maybe your IP is overwritten by another app? A
buildin app that you use for experime
On 9/21/2023 6:53 AM, Petro Karashchenko wrote:
setting "address.sin_addr.s_addr" + "bind" is kind of a way you can use to
receive requests only from an interface that has a specific IP address.
This is useful if your system has multiple network interfaces and you want
to provide some kind of iso
setting "address.sin_addr.s_addr" + "bind" is kind of a way you can use to
receive requests only from an interface that has a specific IP address.
This is useful if your system has multiple network interfaces and you want
to provide some kind of isolation.
"address.sin_addr.s_addr = INADDR_ANY;" +
So setting a value for the IP address in Kconfig and assigning it to
address.sin_addr.s_addr should solve the problem?
De: Petro Karashchenko
Enviado: quinta-feira, 21 de setembro de 2023 09:35
Para: dev@nuttx.apache.org
Assunto: Re: different IP than expected
I
I think that you misunderstood the data flow a bit.
So you have
...
address.sin_family = AF_INET;
address.sin_addr.s_addr = INADDR_ANY;
address.sin_port = htons(PORT);
if (bind(server_fd, (struct sockaddr *)&address, sizeof(address)) < 0)
{
perror("bind failed");
When I started with networking, I set the IP via kconfig. I remember that
it was necessary to enter the same IP at two different places. Netlib and
FTP server in my case. Maybe your IP is overwritten by another app? A
buildin app that you use for experiments?
--
Ingenieurbüro-Filgis
USt-IdNr.: DE3
I've attached a simpler version of the server file removing the logic for the
incoming requests so you can take a better look. How should I make the API call
to get the device IP?
De: Petro Karashchenko
Enviado: quinta-feira, 21 de setembro de 2023 09:00
Para: de
On 9/21/2023 5:06 AM, Gustavo Soares wrote:
Why is it a different IP? The server is listening to one but this
method returns another one.
You provide almost no information for anyone to really help you.
Where is the server and client? It sounds like you are saying that the
HTTP server is o
Yeah,
But what is in between
[image: image.png]
and
[image: image.png]
???
Do you have any API call to get the IP? Because I read that like "int a =
10; printf("%d", a);"
If there is no API call to update "address" then you simply will print
"INADDR_ANY" value.
чт, 21 вер. 2023 р. о 14:42 MIGUE
I mean, ifconfig, and capture the ip…
Enviado do meu iPhone
Em 21 de set. de 2023, à(s) 08:24, Gustavo Soares
escreveu:
Hi, Petro!
I use this struct:
[image.png]
and this where I use the inet_ntoa:
[image.png]
De: Petro Karashchenko
Enviado: quinta-feir
Can the gustavo application do oscall to the utility that returns the ip ?
Enviado do meu iPhone
Em 21 de set. de 2023, à(s) 08:17, Petro Karashchenko
escreveu:
Hi,
But what do you pass to "inet_ntoa"? Maybe you get the IP of your PC or a
default router IP and try to print it?
Best regard
Hi, Petro!
I use this struct:
[cid:55c45c09-3f8e-4479-9315-f70a156c8f0f]
and this where I use the inet_ntoa:
[cid:7b74168e-0e07-4c3c-ba95-32016a361340]
De: Petro Karashchenko
Enviado: quinta-feira, 21 de setembro de 2023 08:16
Para: dev@nuttx.apache.org
Assun
Hi,
"INADDR_ANY" definitely does not match "listens to the defined IP"
statement. I do not understand exactly what you are trying to do, but it
would be good to know what is the output of "ifconfig" running from NSH.
If you do not want to share code details, maybe you can check how your
applicatio
15 matches
Mail list logo