Hi all,
asitissome time agowritingmy last blog I thoughtitwouldbe a goodthing, tosharesomethinginterestingfortheholidays.
So I'm not goingtosharesomegoodthoughtsorwhatthepastyearhasbroughttousortome.
Thathavedone a lotofotherand I don'thavetoaddtothoseblogs a thing. So whatisthisblogabout. I bought a raspberry a fewweeksagoandstartedtouseitwith different tutorials.
As I learnedthisyear at sitmucthat a lotofusdon'ttakethe time tobuildtoolorbettergetusedtothetoolsto handle things in an easy way. At that time I was a bitskepticalaboutthisfact, but the last few weeks I recognized that this is also true for me.
I was so fascinated of my new playable raspberry with all the sensors and other things plugged in, that I really ignored the fact, that Putty is a nice Tool to connect remote systems in an easy way but is a terrible editor.
Luckily I recognized it some weeks later and started to use Eclipse. As you might know I'm really addicted to it and why not have all together in one place. It's not just awesome for ABAP, refactoring and ....ok, that's offtopic...
Today I want to show you how to connect your raspberry to your eclipse installation and additional to that share with you the python-plugin to have the coding presented in a way you want.
Prerequisite:
You have a Eclipse-Installation running (No, have a look here: https://eclipse.org/ )
Let's start with connecting the device:
- Open "Window" -> "Open Perspective" -> "Other..."
- Choose "Remote System Explorer"
- Open "File" -> "New" -> "Other..."
- Choose "Remote System Explorer" -> "Connection"
- Set up remote connection type
- Click "Linux" -->Next
- Chooseyourentryyoumadebefore in step "Add yourraspberry" and type in a name->Next
- FILES Click ssh-files at thewindow "Configuration" -->Next
- PROCESSES Click processes.shell.linux at thewindow "Configuration" -->Next
- SHELLS Click ssh.shells at thewindow "Configuration" --> Next
- SSH TERMINALS Click ssh-terminals at thewindow "Configuration --> Finish
Nowyoushouldsee at yourlefthandsideyourcreatedconnection
- Rightclick on thenameandgotoproperties (Shortcut ALT+Enter:-) )
- Lefthandsideclick on host andyoucanaddthe Default User ID. I thinkmostofususes "pi" asshown
Nowyourgoodtogoandcanconnecttoyourraspberry via eclipseand browse thefiles.
Next I will try to connect my eclipse to cross-debug on my raspberry. This will take a while cause of different reasons.
So that's it. Maybeit's just me, but I hadmyproblemstostartwithitanddidn't find agooddocumentwhichleadmethroughthewholeprocess.
RightnowI'mdivingintothehttps://github.com/SAP/iot-starterkitandtakemynextsteps (That is also the reason why I posted it in this space).
I'mprettysure I will gettothepoint I needdebuggingcauseof a biggerproject. After I havefiguredit out I will get back hereand also sharethissetupwithyou.
Ifsomeoneofyouhave a runningsetupand a guidehowtogetthere I also would like tosee a blogoreven a link:-)
Cheers
Florian
BTW: I also installed the python-plugin to have a good looking code in front of me.