3rd Repo, trying to figure this out.

Dependencies:   LPS25H hts221

Fork of SOFT253_Template_Weather_OS_54 by Stage-1 Students SoCEM

Committer:
aburch1
Date:
Thu May 11 19:23:55 2017 +0000
Revision:
83:0d3572a8a851
Parent:
81:996c0a3319b4
Child:
85:422d0a1b95cf
Comments cleaned and improved throughout classes. Main header class comment complete, other class comments still need to be written.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
aburch1 81:996c0a3319b4 1 #include "Message.h"
aburch1 81:996c0a3319b4 2
aburch1 83:0d3572a8a851 3 /**
aburch1 83:0d3572a8a851 4 Copies the content from ptr into the Message object text char array.
aburch1 83:0d3572a8a851 5
aburch1 83:0d3572a8a851 6 @param ptr : Pointer to char array containing message.
aburch1 83:0d3572a8a851 7 */
aburch1 81:996c0a3319b4 8 void Message::copy(char* ptr)
aburch1 81:996c0a3319b4 9 {
aburch1 81:996c0a3319b4 10 strncpy(text, ptr, 256);
aburch1 81:996c0a3319b4 11 }
aburch1 83:0d3572a8a851 12
aburch1 83:0d3572a8a851 13 /**
aburch1 83:0d3572a8a851 14 @return text : Returns the text char array stored in Message object.
aburch1 83:0d3572a8a851 15 */
aburch1 81:996c0a3319b4 16 char* Message::getText()
aburch1 81:996c0a3319b4 17 {
aburch1 81:996c0a3319b4 18 return text;
aburch1 81:996c0a3319b4 19 }