Author Topic: upload on Red-Brick  (Read 2585 times)

tades

  • Newbie
  • *
  • Posts: 1
    • View Profile
upload on Red-Brick
« on: March 12, 2017, 11:22:47 »
Hey,
I m new in this forum and just wanted to know if someone could help me solve a little problem. I wrote a program in visual studio 2015 C++. the program is actually quite simple. it just miss the room's temperature and give it back. I also debugged it and test it from my PC and it works formidably. I wanted to upload it on the Red-Brick and let it be always scheduled so that it will always run, but after the upload it always shows me "Not running, last run exited with an error (exit code: 2) ". I already removed syntaxes like "printf("Press key to exit\n")" and "getchar()". can any one help me to solve this problem?
thanks
Tades

wehnerc

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
Re: upload on Red-Brick
« Reply #1 on: May 14, 2017, 15:08:17 »
Hi
I'm not used to code in C++ for TF. But I had a similar problem.
Working on PC I coded the IP-address inside the script. After transferring to RED it was not working, because the IP-adress changed. Using instead LOCALHOST inside the script solved the problem. Please check and try.
weather will be fine