Home  >  Support  >  Support Forum  >  how to manually issue IP addresss calls & compile 2 seperate codes
Notice! We've recently migrated to using a new forum, we hope you enjoy it. If you are an existing member and this is your first time visiting our new forum, please reset your password to be able to sign in.
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

how to manually issue IP addresss calls & compile 2 seperate codes

0 votes
Peter,
Thank you. I am a hardware guy so the programming required in this application is not something I am familiar with. Basically, all I am trying to do here is create a simple serial server. Could you explain to me how I would go about manually issuing the required calls? I did play around with the addp stuff and I would like to add that functionality to the device as well but I am not sure how to compile a project which consists of the TCP_to_Serial.c code and the addp.c code. I tried creating a new project and adding those 2 files in the project explorer but it will not compile. It gets to a point where it says some line of code is not found. Just from looking at some source codes in the past, I assume I need an 'include' statement somewhere but I’m not sure where or what to add. Any help or guidance would be appreciated.

Thank you
asked Apr 2 in Rabbit Software by Mulepunch New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

0 votes
Your best bet here would be to create a new project by copying one of the examples and then adding in features from the other. Probably start with the serial to TCP example and modify it to use the same type of setup for the addressing as the addp.c example.

The addp.c example does not do anything much other than set up the network using a default config or a previously stored one (in the user block which is in FLASH) and then wait around for an addp request which it acts upon.

Your test app would have to set up the network in a similar fashion and make sure to call addp_tick() as required to service any ADDP requests that might come in.

Regards,
Peter
answered Apr 2 by petermcs Veteran of the Digi Community (398 points)
Contact a Digi expert and get started today! CONTACT US
...