2.11 Application Coding
Now, you have the MPLAB® Harmony components configured for a PRIME application. The Getting-Started demo implements a typical PRIME Service Node application. This application is written using the API's provided by the MPLAB® Harmony PRIME component.
The PRIME demo for PIC32CXMTG device is already available in smartenergy_prime_apps repository. The application source files are available at smartenergy_prime_apps\apps\prime_apps\prime_service_dual_modem\src, while the user source files are available at smartenergy_prime_apps\apps\prime_apps\prime_service_dual_modem\src\config\pic32cxmtg_pl460_rf215. Let's make use of those source files for the MyFirstPRIMEapp demo.
- 
          
Copy the application files (app.c, app.h, modem_service.c, modem.h) from smartenergy_prime_apps\apps\prime_apps\prime_service_dual_modem\src path.
 - 
          
Paste the application files to demo at ...\MyFirstPRIMEapp\src.
 - Copy the user files (user.h) from smartenergy_prime_apps\apps\prime_apps\prime_service_dual_modem\src\config\pic32cxmtg_pl460_rf215 path.
 - 
          
Paste the user files to demo at ...\MyFirstPRIMEapp\src\config\pic32cxmtg.
 - Add Header and Source files to the MPLAB project.
Figure 2-62. Application and User Files  
