foreign [Applause] good evening all of you you guys need to go through this link so this link in here we have three things okay [Music] so we have three things here one part three ways we can go for normally uh we can I'm Audible for everyone right just okay oops I'm audible right please message me so that I can understand a model a yes a neighbor you are loud and clear okay thank you good afternoon good evening everyone so for today's class of our first and foremost work today will be to put up just okay so there are too many downloads which we need to do okay so I'm I'm not sure how good is your internet speed so I don't know how you will be able to download everything else so but I will give you the links along so I will just uh put this link in the chat but this is a link to install I've already put it in chat okay now for everyone yeah so in this I have tried two methods the first one was told us [Music] this is your virtual box method so they are using virtualbox VMware and qemu which we used last time okay so with virtualbox uh I am getting stuck at some place I'm not able to run my I'm following all this but I'm not able to run my uh RPI at the end when I'm doing from this screen if I am going for start I'm clicking start and my raspberry is crashing I'm not getting these screens so I'm not sure what is the issue I tried a lot of things QA mu is also there but is mostly for your window Linux based setups to be easier for you if you are from the Linux setup you are using Ubuntu or any of the Fedora Red Hat something like that then qemq emu is better Windows installation is not that clean okay so it will be difficult for you to work around you can look at it you have to install some um this mysis 2 and all uh but it's better so after the final one which I'm trying is the uh VM VMware directly so let's see how this works around yeah um we are working on a VMware part so I have what I have done is I have gone to this weird website I'm sending this link to you all okay here they are down you have to download a workstation which is for Windows or Linux depending on your system okay I have downloaded this so I'm doing this next and guys who are joining late I will not be able to repeat if you want to see what I have told already if you want to see that please go to the YouTube channel and have a look okay so I'm trying now the VMware you see how this works around install I'm installing this one more thing you need to do is you need to download this Raspberry Pi ISO file from here it's a bullseye version I'm giving you this one this is almost 3gb so this is quite heavy I don't know you will be able to download this or not to the but I'm putting it up okay from here you have to download this is some heavy downloads here so with iot you will be learning a bit of Linux also working tomorrow on Sim server or settings like that it will be easier for you to work around you're able to follow me if you have any questions from not audible or not Audible I am not Audible your audible enabled I'm getting a message here guys just rejoin if you are facing any difficulties okay Siri please rejoin because I don't see any problem here okay so my VM uh where I have installed you have to download these things the first one is the Link in which the step-by-step procedure is given so now let us see on the procedure what is the scenario is here yes so I have installed this okay and first [Music] VMware how to download your app given you the link right here I have given you the link for everyone the link is there VMware connect I've given you the link have you not got the link so three non-commercial use continue press finish yes fine so we are getting something similar to this this is this is our version this is the website's version and download and install VMware version 3 update for all gamer see skip this version I will skip it for now this is good enough then we have to go to create a new virtual machine we will create a new virtual machine ISO file so we I have already installed ISO file and start from disk I have I will install operating system later I have a image disk image I have a disk image so I will download it from there this image is with me in my downloads yes I have installed this raspbian rasp iOS Bullseye okay I have given this link also to you guys on the chat okay okay I have guest operating system is Windows Windows 10 x 64. it will be Auto selected so just don't uh foreign guest operating system which operating system will be installed on this virtual machine no the it will be Linux because it is written which operating system will be installed on this virtual machine we are installing raspy OS so that is our Linux based okay Ubuntu here we need to search for um Debian 11x64. if you see my this one is what just a second download if in downloads if you go my this one is 386. okay 64-bit only I have so I will take this to Debian 11 X I'll go up deviant 11x will be good enough for me next next virtual machine name uh for the disk space and all it's not saying anything was just playing machine name for me should be rasp iOS oh guys you are able to follow minimum 20 GB is okay store uh not required for me if you have less number of I'm getting downloader yet not completed yeah I know it will take time will take time so you put things on download and keep on seeing this what I'm doing I'm just following whatever is written on the web web page okay so you can always follow back take care then always follow back then next is okay now let's do play Workshop machine let's see what happens error while providing post but AMD is disabled if you have disabled device from the settings verify device from settings enable the empty file power cycle of host to the Boost password [Music] if we let them do this again one more time [Music] just a second [Music] we're trying this one more time let's go no I don't want this way I want it to be directly but it is showing this is also showing an address so we are getting errors all the time let me speak what I can do with this here foreign if you guys have downloaded you can follow it up give me two minutes okay I can change this one okay I'm getting the same error everywhere actually there was not able to some things here let me see foreign features [Music] one trick checkpoint s [Music] into something on the setting memory it's 2GB processor number of force is one only just twist 20 everything else is okay let me see with VMware what is the issue in just a second with the here also let me settings system versus response storage it's crashing every time let me see this thing what happens no I'm getting the same thing amd5 is disabled or stories and you are getting same kind of Errors uh you guys are able to download this md5 and BIOS version should be enabled or it installed hyper version is disabled installed hyper version disable app done so uh Colin thank you for this I have I know this now uh the problem is I have to restart my system uh once I think uh a month how I will be joining them [Music] yes I have to restart my system once so what should I do yeah you can I will make you cost again okay okay guys I'm just restarting my system everyone in the meantime you just follow that up from the VMware section okay I'm Audible hello everyone I'm Audible sorry for the delay system starting always takes time okay especially windows so let me see if I can run this up now yes now this is running so let us go to that webs web page [Music] yes can anyone if you share that webpage with me the web page which I shared with everyone uh okay I'm going to have that search for it this was the one I'm audible right if I'm not audible please let me know yes yes I've got it I've got it because they're with me okay now my it will work with VMware also for me it will work with the virtual machine also with me for me it was my mistake I was doing something wrong there and I didn't read the errors properly and it was a very important guys um yeah so my recipe in this one is running in this way next one zero one two eight is my IP okay next uh I'm installing this huh so once your virtual machine thing is done you will come to this my country is India go up India language not language will take it as English for now so that it becomes easy we have other languages also kannada Marathi kashmiri konkani so they have good collections now time zone is Calcutta is Right Use English language use US keyboard uh next is okay going to settings enter username I will write the common one only but they will not allow me so I am writing as it says another one and password is as my name again another one you can write anything you write like okay I should write password as [Music] iot class so this I will write as iot class no iot class is good iot keep it in mind otherwise you will not be able to honor one I'm just writing it down on my board iot class you can write anything but key remember this this is your username and password for Raspberry Pi okay next next guys you are able to follow anyone have downloaded uh the isos and the VM VMware till now any one of you updated we don't have enough free space in okay fine no issues we start with the new settings are done okay run with okay I will have to see this okay thank you eight seconds you're getting it till there that's good bye is getting up it's good run with persistence what is here we have to install locate you have to do install here next oh every time it is asking this okay I have not done installed I think that is the reason why it is doing so again do the procedure I have not gone to the install part [Music] foreign class okay class text [Music] s you will follow this up I think you can follow this up now after this page you have to go to you have to install this ISO uh respite so I have given you right I've given you the link for that also you have to download that and you have to use the iso image that's your Raspberry Pi's image okay okay [Music] you know what is this foreign [Music] just a second partition be careful but it is mainly related to your uh this one what is that called yes let me go through this lines one by one install I have done this is done after few minutes select it says select uh use the entire this partition method yeah we can do that [Music] um yes can you use it that's okay Finish partition right changes to the disk and write changes to the disk yes installing the system guys you are getting any issue in the procedure please let me know so that I can so this is the actually this is the main most painful work when you create a system in iot and you set up everything this is the devops work actually and these procedures and all you have to remember and you have to check out so those things are always green points it will take some time I think so today we'll mostly spend a Time with Raspberry Pi installation as well as some mosquito and some kite installations that will be our first thing guys you have gone through the pajo mqtt page which was there with all instructions and all the things have you gone through this one I have told you to go through it it's very big and it has a lot of things if you are your downloads are happening and mine also is running so in the meantime what you can do is you can go through this in a good way okay what all things are there try some things in this you can take some time and do this this is very good actually and it will give you a full idea that how and uh which way you see this things like now we had a moon landing yesterday right so there also we need uh protocols like these for communication I'm not exactly sure they use mqtt but these kind of lightweight protocols which are very light in scenarios and mostly they are used as Pub sub model only still doing if you have any doubts any questions you can ask me in the meantime we all are waiting for the installation so we can discuss that anyone no one has a question I think this has gone to some place let me see you can use the other Oracle one also it will also work the same way any of the three if you are able to install that's that's good enough sir your session are really good but I want to learn from basic to Advanced can you guide me yeah we'll we'll be having more courses I think Amer can have a discussion with Tama where we will have more these are like introductory course we are going into the things but not in a very very deep Manner and the timelines are also installed grub bootloader and primary device primary device installation only operating system in this computer if you yes oh enter this manually yeah Dev SDA that's what they're stored yeah so you can you can always connect and we can I have a question from uh that your sessions are really good sir but I want to learn iot from basic to Advanced can you guide me so please coordinate okay how can we self-learn all these things self learning is difficulty first you have to Target out one product or one solution and then you can go back from there learning things otherwise will be very difficult because these are very vast setups okay there are very too many things which are involved in this and they are parallel also so what happens if you uh let's say I'm talking about communication so your use case will have one particular communication which is useful uh other protocols might not be useful so if you want to do all protocols it will it will not be possible for you to do it then you will lose interest so take take what is the same finish or installation is complete good so do that uh do create create a take a project and so we and steadily in phase matter start developing its subsystems and create something big if you are in third year and your final is waiting for the project you can start something now itself which is uh real time uh don't go for fancy stuff you can go for uh things in your campus you can have some smart device connected there itself so that it becomes a real-time application or some agriculture application is also about transport is also very nice in this home automation and all is quite um old now old in a sense means if you cannot reinvent something because there's a lot of things which are there already on the grub advance upload load it let's see how it works yes or probably are desktop will load [Music] next to this next again it is asking of demand we have to give our country I think those settings are different uh we didn't install it first that was my mistake uh that's why it was just for fun we were doing next so that and that will be one thing which you have to keep in mind create something which is useful for people iot class to us next next checking for updates are this time it will be updating because now it has memory earlier didn't add memory [Music] setting up a Raspberry Pi in real time also will be difficult it's not that easy you have to get the get the things done and I think the rates of Raspberry Pi have reduced now earlier it was quite it was in high demand so it was very costly I don't know what is the current price but you can go for a zero or something that is cheaper I think shopping if I see yeah it's still in the 5000 range but it's available earlier it was not available at all go for a starter kit but I don't think so you should go for a starter kit you can get a low cost one and then you can add on things depending on your requirement you want to work on uh iot I think you should get a Raspberry Pi at least you should get analyzed by zero that's smaller it doesn't have the desktop version here we will get the desktop version actually it's downloading downloading updates so that we will get the updated one itself anyone else wants to discuss any part which we have covered which you have not covered which you want to know see iot becomes one of your major source of data because of that what happens you will always be in a situation where you will get real-time data values so depending on that your mlai everything will actually work with IOD systems because there are very few otherwise uh systems which generates data just like that so just like that in a sense means if you look at yourself in a day how many have we post or Instagram updates you do maximum 10 20 that's it right but if you think from the perspective of the device if if my device frequency is every 15 seconds it has to send data then what will happen if it every minute it will send four every hour it will send 4 into 60 is 240 messages and after that every day 214 to 24 so that's a huge number and that's very that's why I'm talking about one device itself but if you see the number of devices which are available or which can be there is very high so if you want to do real-time data analysis and machine learning and things like that you have to have a data source so ID becomes a data source for you so that's that's the first and foremost thing so data Sciences also cannot work without iits because the source of the data is iot in most of the cases foreign yeah that's okay that's okay if you can get the shell that's good enough I don't like the desktop at all because for me uh working with the SSH is the best thing so if you can get the assistance that's good enough I'm running the desktop version to show you otherwise I never installed the desktop version I always use the light one if you can get the light OS also that's also good I will show you the desktop but I will work with the SSH only [Music] anyone else have completed this I've already installed anyone please message will give a big ground of floss for you for you and for your internet and your system speed all the three things together foreign thing that you can run OS on this this is not for OS this is a microcontroller level thing I use I'm finding something some screen from there yeah you're getting some error do you want to open this file Windows no you don't want to open this file you just have to attach it at a place where we have already discussed if you see my this one where you have to attach it uh once you run this here use ISO image in this one just find out this image and put it okay browse it and get to this location getting updated moves by connection timeout is not yet available okay no issues press restart with this new settings that's okay this time I think we should get those yes this is not OS it's working no I listen to face found that's fine let us run the terminal here and do a if config so we have this ethernet port and we have this this one okay now our same problem comes again but how to do the SSH guys we are able to come to this point anyone foreign I will do a shutdown first so you want to power up the virtual machine and exit please make sure your virtual machine is in Save State a shutdown appropy powering off yes it is proper so let me see now again open VMware okay this will go to Virtual Machine edit scenarios here what we will do is connect okay so maybe this is fine options generally this is fine shade folder is fine [Music] okay Network physical boost only the favorite type of shared with the host hopefully back first you should enable the SSH you have to share host type creators now I don't want it to share the host type characters a private Network that can be that would be okay I think I'm just making a private Network and see how this works or not Linux yes yes you have to choose you you just read it out properly it will say that what uh the OS you want to install the OS you want to install is Linux just follow the instructions there it is it is given there check it out so 6.128 okay if one thing I can see one 6.128 let me see if I can from my from my CMD of my system if I am able to uh click on this or not ping what is the IP I have to check this IP out first it is Pink 192.168.6.128 yes I'm able to Ping okay guys so now what I have done is when my in my repo okay guys I'm just shutting it down again one more time once you have installed everything okay once you have installed yes I'm doing this yes once you are installed okay now what to do this is till here you have reached I am assuming everybody is reaching till here okay now the point here is that for us we need to what we need to do our device is our what is device for us is dev1 and dev2 which are nothing but python codes right dev1.py is simulating like a device Devon tool dot py is also simulating like a device right now next is our Gateway Gateway is what R pi on which one second guys I know you guys should say I've got to see I understand your point should be in the 22s okay so device we had one these two devices we had for the Gateway we have the r Pi VM which is running on your system everything is running on your system only okay but you need to understand or you need to think around that what how they are different and if in Real World what will happen how it will change now next is your Cloud which will be your desktop itself your Windows PC Windows PC all three are running in your Windows PC only but we are spacing them up now your devices should be able to talk to the Gateway and your gateway should be able to talk to the windows uh the cloud right your device should be able to contact to the Gateway your gateway should be able to talk to the cloud so if if they all should be in a virtually in a network like the device and Gateway should be in in a direct Network and the Gateway and the cloud also should be in a direct Network okay so that's what I was checking out so when you have installed and done everything just do one part just do one part here extra foreign guys I think you are hearing me out so here what you do is go to this virtual machine settings select virtual machine and go to Virtual Machine settings in network adapter select this host only a private Network shared with host you can do a Nat also so that you can get the same IP as your user your PC but then it will be confusing so now with this host only your Raspberry Pi has a unique IP okay so with this let's let's run this up guys you have cleared it till now you are able to understand the architecture which you are looking into with the virtualization in real time your gateway will be a real Rest by your devices will be real devices but they will behave in the same way am I clear with this if anybody has doubt please raise your hands or message me if it is clear also please say yes I will be encouraged because I'm not able to understand you guys are able to get it or not so here what we will do next is we will do preferences we will do configuration in here where is that class by configurations [Music] please give me a response stating that you have understood what we are saying or how we are conferring configuring the system if you are getting issues with configuration that's a different thing but at a higher level are you able to understand what we are discussing yes please let me know okay here we'll host email is okay yes sir good thank you Rishi thank you over scan interface location yeah here SSH interface we have to enable thank you Vidya thank you bhumika it's encouraging thank you okay so now what is happening here we have this SSH enabled we have enabled the SSH we are we have enabled we have gone to this here here we have gone to preferences in preference we have gone to Aspire configuration in respect configuration we have enabled SSH SSH is your remote connection so between your uh Raspberry Pi and your system or your OS will have a configuration now we have enabled it now let's so here it was the interface interface we have enabled it okay so now let's go to your so we have to install something putty all of you have installed yesterday inputee we will write this IP if you hover here you will get this IP 192.168 6.128 so let's see we can one nine two dot one six eight Dot [Music] 6.128 and this is IPS 22 okay let's see yes we are getting this prompt we are saying yes login we are doing file enter and uh this one we are doing uh no no no no not Pi I forgot login name was something different it's wait wait I have done it from putty [Music] yes put yes come again 192.168.6.128 tab this one open here my this one was another one and my password was iot class yes we are inside under one raspberry this is the same this is from your system okay that's the one which I'm rotating this is from your PC now if I go to this virtual machine if I clicked here then also I will get these two are actually same so from outside this device you are able to access the SSH you are able to access this machine that is what the idea is here okay so if we use this uh okay so let us first install mqtt here today mqtt broker we just write down the instructions for you guys so we'll do a first update is already done so I will not go for the update let me see if I can get directly get the apt running sudo apt I will write it first here enable SSH okay this will write sudo apt install minus y must okay so let's this is your broker this is one of the free Brokers the other broker also but we will be using this one see how this behaves the answer is working I think let's see and you short happened yes cool cool man good kudos to you any one of you has a real Raspberry Pi with you right now I have Sanjay so you are able to follow right trust me you are able to install you're able to install things right you could not resolve.org okay I will just stop this I will do upgrade update to be a good guy to go APD update since we get the updates properly you know circulating some fruit like this evening let me check if I'm able to access the internet thing to check out that you are able to access internet or not right ping space google.com should be able to connect this is the issue it's not sharing it's not sharing my [Music] [Music] just second guys [Music] okay okay I think we don't have the screen working here again oh let us see if you can directly check out so I will stop this now because it's not able to access not known yes thing let me see my location okay just it will be able to take definitely foreign let's restart connection issues let us see um oh yeah I understand that's the issue I have stopped second I've only shared the network with my uh this one so it is not I've shared the network only with the host if you see here in Raspberry Pi uh if I see the settings here if you see in the network adapter we have only private Network so it will not be uh shared use to share the IP host IP address directly to physical Network okay let us see let's do this and see what happens [Music] what happens what you are saying configure okay configure in this one go to Raspberry Pi configuration interface SSH enabled okay yes this is up what is the IP now okay so we have something else so now it has a very unique ID let me see if I can connect with that anymore [Music] okay my putty is closed now I will again start the putting okay so I will type this one six nine dot two five four dot two four two Dot 76. let us see if we can connect it no we are not able to connect okay that won't work um this font work I think go to scheme like on front I will write IP config to know my IP addresses my IP address is 6.1 okay [Music] okay 6.1 is there I have become the hostel Bridget uh Bridge it with what um okay [Music] again shutting it down checking out different things okay so we'll do this [Music] foreign look into this okay well unplugged into it is not working but not so DCP restart the font thank you strongly coffee electricity let us experiment with all and see what all we get network bridge we have repeated network connection okay let us see if this works not used to share post Network okay foreign getting into the SSH scenario what happened you have to do the network setting which I am doing every time to go to the network adapter come out of the OS go to the network adapter now let's see connects oh it's still the same still configured terminated is nine oh we have so many Networks okay it's restarting root should not restart maybe the issue is with your uh just read out if you are getting any errors or not it's not working anyone else guys with the setup till now you guys have been able to move forward click [Music] this it is getting this automatically settings okay okay it's okay which we have already done used to share post IP address okay see how this works but from anyone from ayush who is able to download and connect everything the way we have eyes check out your ISO file has completely downloaded it or not it is 3.5 GB just check that out also maybe the file is corrupted that might be the case okay if config yes two one zero so we have got this one at least Google .com let us see yes we are able to do Google ping also cool so it is the net share which you have to go for okay keep a check I wish you will get it Nat Nat one you have to use share with the host okay in the network thing so this is working fine now we will have good this one second we will not use this what is this called uh the SSH from this one from the system will not use we'll use our own SSH which is this one what is the IP one uh wait one second what is that what is that the IP is 192.1 1.168 Dot two one zero dot one two eight yes okay I have got the login it is another one and enter password is iot class yes I'm in so let us do sudo um wait one second get into this direct mode now where we'll just simply install things one by one pseudo update apt updates sorry and this time it should work just upgrade it run uh okay okay create [Music] yes we'll upgrade it right we have seen now everything is working so so smoothly okay yeah in this one detect Network Hardware you can go for this one yeah detect Network Hardware if it is showing then choose language go for choose language and go for next I think that's better so where are we foreign notes doing all the updates so Raspberry Pi whenever you are starting I'm writing the instructions also keep this instructions with you okay before doing this we are doing sudo apt update and similarly don't do upgrade update together in one line it's not not in that much hurry okay once this upgrade update it will be done pressing no root file system is defined continue uh correct this from partition menu go back and select the SDA here if you see in the instruction in the instruction here's you've done this you must have not selected it here this Dev SDA will come somewhere check it out this the dev SDA will come and you have to select this I wish huge updates this is how the devop world works you have to hit your head different things and something will work anyone else apart from IOS is able to come to this point where he is able to start the installation yeah it is go to install in this install click on install come to install 95 upgrade is stunned now the last part is left hope everything goes well yes we are all in good shape now next we'll do is our next command was uh what was the command it was sudo apt installed mosquito so we'll copy paste this here that's it write it out sudo apt installed foreign [Music] now by default mosquito starts running as q u i t t o dash V if we do let's say I see uh I don't know we are able to see this I'm just copy pasting this from here people that moved about the mystery system so it says if I'm doing this towards version it's saying it's already running okay if I'm writing this saying it's already running on the board okay so now let's see uh outing it it got error because it's already in use so our mosquitoes by default running now once you install it will start running so we'll do sudo we'll write another command here sudo s y s t e m system CTL that is normally for any background humans you have to use this running demons you need to use this system CTL enable must key to E2 Dot service e so this this should also give error because it's already running if it is not running so you can use enable stop start with this okay I'm writing it again here sudo system foreign enable mosquitoes dot service is saying animal mosquito it's already enabled now let's let's now we'll go to a file called okay we'll go to a file which is there in so Nano is a IDE or a thing like your text editor which has some ways to work around so your path in which your configuration file is is this one MOS foreign okay this is your oh see yeah oh oh why I'm doing this this way I'm inside here only okay okay so this is the file which is already there if you open this up this file will get open I hope you are able to see this guys it has it is written and there is that log destination file and include dir is Etc mosquito dot I will just copy it here so that you can see it what all the file contents [Music] this is what the file shows it says that we have a PID file which is mosquito PID leave this persistence is true that is okay it will persist with the data this is the most important point the include directory is ETC mosquito conf D so configuration you have to go to this location to put our configuration file okay I'm just deleting because this is not useful so we'll go to this place we understood the quantities where so we'll go to this place we will do so Etc mosquito conf d so we'll do those CD C mosquito conf d That's the folder so here if you do a LS you will find only readme is there so we'll make a file we'll do sudo Nano and we'll create a file default default Dot conf okay what we have we done we have gone to CD Etc then mosquito have gone to the folder and then conf dot d I've gone to this and inside this we are writing another file called sudo Nano that's your IDE you are typing it which is called default this is a default setting we want to have for a mosquito do that okay so this is your once you type this and enter you will get into a file when you type this as enter you will get into a file in the file you have to write listener LISD e and ER listener will be 1883 this is the port we want our mosquito to listen to and allow hmm well it's in 1883 and protocol protocol is I will write it here first of it so inside this file you have to write after this again where you now guided enter disk uh use entire disk partition method use entire disk okay before inside you are doing listener 1883 then you are writing protocol as mqtt you can have others also but just not the persistence who is all already there allow anonymous law Anonymous is if you don't give a client name the mosquito will give a client name itself autonomous is true so these three things will write in that file we are copying it from here on products y yes so to open close it Ctrl X then controls plus y will close your Nano save and close Nano okay now this is done okay r mosquito service will enable one more time will stop and start in place of enable we are writing stop and again we'll do start so that this new configuration file is taken into account I have written star not start yeah it will restart okay okay so I hope our speaker is running now so let us see if we can check that out uh from our python code okay PS s a u x it's just a second guys yes one mosquitoes running now let's minus V that's cool now uh okay [Music] so now let's see that we are able to from our device we are able to Ping this system or not ping to our Raspberry Pi this is 192.168.210128 okay 168 device the host unreachable sorry once it's saved no no one six eight two one zero one two eight it is okay I've written it wrong that's right one two eight this week [Music] two one zero one two eight yes getting it properly now from here [Music] so let's look into our code structure uh sir you wrote protocol is that correct which protocol you are talking about you this one [Music] man united please be clear Proto call I am not able to understand what which protocol you are talking about I wish you have been able to do it further um okay sorry oh oh maybe maybe that's the reason why let me see I will again foreign [Music] C maybe that is the reason why it is not able to start thank you for your observation uh dear let me see if I can CD configure.net [Music] export okay now it will work I think or starting up otherwise yes now it's starting up okay so now let's let's see now what is the situation currently dear everyone we have our devices code ready so dev1 dot py Dev 2 Dot py these two needs to connect to Gateway mosquito okay Gateway mosquito is at what IP the URL is 192 for me design for you you have to check it out what is yours yeah for me it is one nine two one six eight dot two one zero dot one two eight okay and my port will be 1883. okay so let let us do it like this that we will have two devices here so what will be are one partition recommended see this is your virtual device itself whatever it's giving as a setting give it full full there's no point in holding up okay this for are you sure okay so now let's open our codes python codes div one and dev2 oh this is what I don't like let me start executing just like that I think it does that's the major thing okay the one is opening here my connect this one will change Ctrl C will be now my IP will become this or whatever IP your Raspberry Pi VM has this will be my IP okay now it will not go to the main thing now uh D1 and D2 I'm changing okay yes or no which one you are talking about uh James uh yes yes yes when you will do whatever is changes will not happen so dev2 I have opened now with idle here also I am changing the IP address to this one okay now these two needs to run first then and now the issue is uh let's first see that they are able to connect or not [Music] let us see that we'll double click on these and it is they are able to connect I guess they are able to connect that's why we are able to print otherwise we would have got some errors so now this this is our two devices which are sending data test one and test two okay this is on your PC everyone this is on your PCM so now let us see we will write some sub code we have some sub code right uh oh this sub code we have a subtest okay this one I will remove all this this is not required in this one what we'll do is we just need to change this IP not this IP click on yeah same ID this one now this code I'm copying from here and I'm running this code on the virtual machine okay by doing CD it is going to the main okay I'm making a folder uh mkdir that is making a folder called test and inside C D mkdir I am doing I'm going inside all right CD sorry CD test now going in that folder now and in that folder what we'll do is we'll create a file called uh sub so sudo Nano sub Dot py okay and here I will paste my code which I have copied from here Ctrl yes now let us run this up python test [Music] sorry if I then so okay no module called Bahu because power is not installed so let us install this pip installed sudo pip install python python what was it called python or Python and qtt sorry fully wrong so I'm just copying this up from here from this website swapping this up power mqtt I will be installing it in my this one installing it installed successfully now I'm trying to run my Pub sub let me see if I'm getting the data C guys we are getting the data I am not sure how you can see this now I will just open up these prompts yes this one is your one of the sensors test one this one is a test one this one is your test two okay these are running on your system or they are running as individual devices you can say okay and here in this one you are getting the data this one is your device S1 this is device S2 and this is your gateway which is getting the data all three are in the same network and we are using the gateways IB address for mqtt URL and we are connecting all the three these three are running actually separately they are virtually together they are virtually separated okay in reality they are running in the same thing but they don't know that they are running in the same scenario okay so our Gateway site is done device we are able to get the data on the Gateway okay now next what we will do is from this Gateway we'll send it to another server which you will create on the desktop itself tomorrow we'll do that take care everyone tomorrow we have Friday okay we have tomorrow we'll work around on the full Gateway structure with the cloud and then we have 28 Monday as the last class I wish what is the scene show me [Music] this will complete fully once this complete go to the it will open up yourself it will ask for all the settings after this enter enter everything and all those things if you say it will take some time this took time for me also remember [Music] guys any question you are able to understand this concept this one is running this this thing is running this is your gateway okay this is your device one this is your device too they are communicating together next we'll create another server so the Gateway will start communicating to the server the same data and we'll create a small UI which will showcase this data okay thank you satrupa guys this is how this full systems work they will communicate so you can create I have created two devices here T1 and T2 you can create 10 20 30 devices and you will still see the gate you will receive all them all of them in real time so up to 1000 devices one mosquito broker can easily handle if you have more than uh simultaneous devices which are more than thousand simultaneous devices here means that the data should come simulated they can be n number of devices if they don't send the data simultaneously there's no there's nothing the mqtt needs to handle but the broker needs to handle it if they are sent simultaneously at the same time then the broker has to queue them and if it queues them then it has a limitation of 1000 messages on mosquito I'm saying there are other uh commercially available mqtt Brokers which are having more capacity okay guys I will just uh share this through the other thing with whatever I have written here I will just uh do this in this I will also write download download that's very pile ISO file [Music] where you can download it I will just give that to you also bit by downloads what happened yes yes exactly here you have to download it from here download Raspberry Pi desktop okay I'm just giving you this link also here and I would share this through touchdown foreign [Music] [Music] this is the file we are talking about these two are in the file you need to write this sorry this is inside this file you have selected once you don't use the uh equal to zum this is just to differentiate here to save and close Nano control X control y control X Plus y Ctrl X after that just fine and enter okay I'm just sharing this file with you guys foreign just check out this mosquito uh space Dash V it will give you already running scenario then do a enable sudo enable this one and then you go for this one so do Nano inside this if you go to pseudo Nano you will find that is okay that means your mosquito is running already you have to just update the configure file if you go to the student I know this one you don't have to do any changes in here okay Sanjay don't do any changes here don't do any changes here after but just see that where is your quantity is your config file or not it will become the only so you can actually directly go to uh you can skip this you can directly do this CD EDC mosquito config d ins once you go there do sudo Nano default.config inside that you write this to control X Control Plus X and then y enter yeah this is a perfect D so it says that your configuration files are inside Etc mosquito config so that's okay it will take time it will take time here after this you have to go for the network thing you have to go for the network option on your after this your this one will open your Raspberry Pi will open ayush and once the Raspberry Pi is open then inside the Raspberry Pi you stop that you stop it like this I will stop this now because it's time now so I will just showcase to you guys I'm just shutting down as guest yes okay now what is the scenario where is my husband okay now if I come here I will see Raspberry Pi here I will do right click settings in settings I will go to network adapter and I will select this Nat use share IP host okay and then I will play the virtual machine after that whatever I have done inside you can go through the command list and you can work it up okay okay guys so I'll back up today nice to have all of you today here uh yes enter enter okay I've shared this command list now I've shared it this this I've already shared see I have shared it with a single person or affiliated that mistake I have shared with everyone see I will again share it if you want sir yssh can't we use a terminal in VM you can use it but see in the real time scenario you will not get this terminal here we are getting the terminal because we everything is in our system itself but if you think around your Raspberry Pi will be connected somewhere else and you have a PC which will be commanding it so there apart from SSH you will not have much option you can go for virtual uh This Record your VNC server also where you can get the screen desktop screen but it says it is faster and it is having less load in that way that's the reason why I'm doing it separately so I'm not writing or controlling the this one from inside you can do that that's your your choice any more questions we will stop in next two minutes uh Amar you want to add something uh nothing so guys if you have any question for me just drop in the chat box and one more thing I already share the attendance link please mark your attendance and share your feedback as well I'm sharing that once again with you you took peoples any query any question thanks for helping us no problem you're welcome genius okay please may you share with me the your works on my uh actually do one thing drop an email to edl atitextra.com okay then our team will give you the LMS access then you will get all the materials and authorization over there I feel that you already dropped an email and I hope you have any elements successful if you are not wrong please confirm new ones always drop an email once again yeah you're welcome again I think there is no more questions so guys thank you so much once again for joining the session we'll meet you on tomorrow at same time bye good night everyone bye