Sign in to follow this  
Followers 0
MSP432

WIFI Remote IP during MODBUS communication

1 post in this topic

Hi I am trying to do a MC to MC communication using modbus.

I assigned static IP's to both my MC's.


WiFiServer MbServer(MB_PORT);
WiFiClient client = MbServer.available();

if(client.available())
    {
        ///Do something//////
     }

My question here is, Is there are way I can check the senders IP address before reading modbus packed data in the loop.

Because the receiver MC can be jammed with high data throughput as its a open connection (i.e anyone can send data to the MC by knowing its IP address). I want to read the senders IP before doing any data processing.

I know using UDP protocol we can use RemoteIP(). Is there anything similar in this case.

For sending and receiving MODBUS, im using the attached libraries.

MgsModbus.cpp

MgsModbus.h

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0