摘要:
//// UDP网络数据发送管理 该类主要用户封装要发送的数据,和解析udp数据#import #import "DeviceInfo.h"#import "TimeingInfo.h"#define setbit(x,y) x|=(1> (pos)&1 //用宏得到某数的某位typedefenum{ SingleTimeing,//单次定时 WeekTimeing,//周定时 SingleSection,//单次时间段 WeekSection,//周时间段 }SendTimeingType;@interface NetWordDataMa
阅读全文
posted @ 2014-03-16 21:39
阿里海瑟要
阅读(391)
推荐(0)
摘要:
//// 设备数据管理类#import #import "DeviceInfo.h"@interface DeviceDataManager : NSObject{ NSMutableArray *dataArray;}+(DeviceDataManager *)instance;-(NSMutableArray *)allDeviceData;//返回所有本地存储的设备-(DeviceInfo *)getDeviceInfoWith:(NSString *)mac;//根据mac地址返回该设备的信息-(BOOL)insertOrReqlaceSignalDevice:(D
阅读全文
posted @ 2014-03-16 21:38
阿里海瑟要
阅读(214)
推荐(0)
摘要:
//// 该类管理所有的UDP发送#import #import "AsyncUdpSocket.h"@protocolUDPManagerDelegate;#define fromHostKey @"fromHost"#define dataKey @"data"#define socketTypeKey @"socketType"#define errorTypeKey @"error"typedefenum{ NewDevice=0x01,//设备发现 AddDevice=0x02,//添
阅读全文
posted @ 2014-03-16 21:37
阿里海瑟要
阅读(345)
推荐(0)
摘要:
//// 该类管理设备的图标#import typedefenum { diandeng=0,// chazuoSel, chazuo,// diandengSel, dianshi,// dianshiSel, dianfanbao,// dianfanbaoSel, gongfang,// gongfangSel, fenshan,// fenshanSel, kongtiao,// kongtiaoSel,}ButtonCenterIco;@interface ImageDataManage : NSObject+(ImageDataManage ...
阅读全文
posted @ 2014-03-16 21:36
阿里海瑟要
阅读(140)
推荐(0)
摘要:
#import @interface ByteUnit : NSObject//返回指定字节的10进制数+(unsigned long)subDataLength:(NSData*)_didReadData startCount:(int)_startCount lenghtCount:(int)_lengthCount;//将字节转为字符串形式+(NSString *)byteToString:(NSData *)data startCount:(int)_startCount lenghtCount:(int)_lengthCount;//字符串转字节数据+(NSData*)stringT
阅读全文
posted @ 2014-03-16 21:28
阿里海瑟要
阅读(319)
推荐(0)
摘要:
// 该类负责发送2G/3G Http请求的数据#import #import "ASIHTTPRequest.h"#import "ASINetworkQueue.h"#import "ASIDownloadCache.h"#import "ASIFormDataRequest.h"#import #import "DeviceInfo.h"@protocolDataRequestManagerDelegate;//开关状态#define openCommd @"FE00001101
阅读全文
posted @ 2014-03-16 21:27
阿里海瑟要
阅读(291)
推荐(0)
摘要:
#import #import "FMDatabase.h"#import "FMDatabaseQueue.h"#import "DeviceInfo.h"#import "DeviceGroupInfo.h"#import "TimeingInfo.h"#import "UserInfo.h"#define DeviceTable_SQL @"DeviceInfoTable"#define SQL_ContentKey @"content&q
阅读全文
posted @ 2014-03-16 21:26
阿里海瑟要
阅读(445)
推荐(0)
摘要:
//// MenuHomeViewController.m// HFYS//// Created by Showsoft_002 on 13-8-14.// Copyright (c) 2013年 Showsoft_002. All rights reserved.//#import "MenuHomeViewController.h"#import "MainControlViewController.h"#import "iCarousel.h"#import "AssitentTimer.h"#import
阅读全文
posted @ 2014-03-16 20:36
阿里海瑟要
阅读(429)
推荐(0)