Sign up ×
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It's 100% free, no registration required.

Can the sf::Packet class of SFML-network be ported over to arduino for use with the Ethernet library or would it be too big? I'm working on a client-program where an arduino is a server and a regular computer is the client making a request. I'm using the SFML-network library to make networking easier on myself and would prefer to use the built in features of SFML to make networking easier. If it is not feasible would I be better off using fixed width data to communicate with the arduino

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Without knowing how it all works, my guess is that you would have to port the whole of SFML, which would be HUGE. So, "No!" is the answer.

You could, of course, write a library of your own that had an SFML-like interface, but the Arduino networking libraries are already pretty simplistic and easy to use, so what's the point?

share|improve this answer
    
I'm sending complex packets that must be deconstructed in a specific way. So I would prefer to have a way to send and receive data in such a way that it will always be the same. – HSchmale Jun 15 at 21:16
    
That's what structs are for. – Majenko Jun 15 at 21:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.